3.16.0 • Published 3 days ago

@theolive/player v3.16.0

Weekly downloads
-
License
ISC
Repository
-
Last release
3 days ago

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

3.16.0

3 days ago

3.15.1

15 days ago

3.15.0

21 days ago

3.14.0

24 days ago

3.13.1

3 months ago

3.13.0

3 months ago

3.12.1

4 months ago

3.12.0

4 months ago

3.12.0-rc.2

4 months ago

3.12.0-rc.1

4 months ago

3.12.0-rc.0

4 months ago

3.7.3

7 months ago

3.9.0

6 months ago

3.8.1

7 months ago

3.7.2

7 months ago

3.4.0

9 months ago

3.3.0

9 months ago

3.11.0

6 months ago

3.8.0

7 months ago

3.7.1

8 months ago

3.10.0

6 months ago

3.7.0

8 months ago

3.6.0

8 months ago

3.2.0

11 months ago

3.1.1

11 months ago

3.1.0

11 months ago

3.0.4

1 year ago

3.0.3

1 year ago

3.0.2

1 year ago

3.0.1

1 year ago

3.0.5

11 months ago

3.0.0

1 year ago

2.6.0

1 year ago

2.5.0

1 year ago

2.3.0

1 year ago

2.2.1

1 year ago

2.2.0

1 year ago

2.4.0

1 year ago

2.3.1

1 year ago

2.1.1

1 year ago

1.3.2

2 years ago

2.1.0

1 year ago

1.3.1

2 years ago

2.0.0

1 year ago

1.3.0

2 years ago

1.2.2

2 years ago