Skip to main content
Version: 10.13.0

Getting started

Usage

  1. Follow our Getting Started guide to set up THEOplayer in your Roku app.
  2. Add an OptiView Live source to your player's source.

Add an OptiView Live source

After setting up your THEOplayer on your App, set its source to a SourceDescription containing a THEOliveSource. You'll need an OptiView Live channel ID:

m.THEOsdk.source = {
"live": true,
"sources": {
"src": "your-channel-id",
"type": "theolive"
}
}

Please note that the playlist feature cannot be used with OptiView Live. On Roku the OptiView Live source falls back to the HLS stream.

Configure OptiView Live

On the player configuration object, you may add extra configuration using the theoLive property on the player configuration. For instance, if you would like to provide an external ID to track the session, you may add it to the theoLive configuration:

playerConfiguration = {
license: "<YOUR_LICENSE_HERE>",
theoLive: {
externalSessionId: "my-unique-id"
}
}
m.player.callFunc("configure", playerConfiguration)

More information