Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@theolive/player

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@theolive/player

The official THEOlive video player.

  • 3.8.0
  • npm
  • Socket score

Version published
Weekly downloads
110
increased by7.84%
Maintainers
1
Weekly downloads
 
Created
Source

THEOlivePlayer

This package contains the video player to play back THEOlive streams on your web page. It's intended for THEOlive customers that want to host the player themselves.

Installation

Install using your favorite package manager for Node (such as npm or yarn):

npm install @theolive/player

Example

This example assumes you have created an account and your first channel and your channel is up and running.

This is a minimal page that creates a THEOLivePlayer:

<!DOCTYPE html>
<html lang="en">
    <head>
        <title>Example</title>
        <script type="text/javascript" src="THEOLive.js"></script>
    </head>
    <body>
        <div id="player"></div>
        <script type="text/javascript">
            // Check if the player needs a service worker and register it if needed.
            // THEOLive.sw.js needs to be served on the same path as this HTML page
            if (THEOLive.requiresServiceWorker()) {
                navigator.serviceWorker.register("THEOLive.sw.js")
            }
            // Create the player.
            const player = new THEOLive.Player(document.getElementById('player'));
            // play your stream
            player.loadChannel('<your-channel-id>')
        </script>
    </body>
</html>

Make sure to change <your-channel-id> with your actual channel-id.

For more information, please visit the THEOlive documentation website: https://developers.theo.live/docs

Keywords

FAQs

Package last updated on 20 Oct 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc