Members
(constant) getMessageContents
Parses the EME key message XML to extract HTTP headers and the Challenge element to use in the PlayReady license request.
- Source:
Methods
eme(playeropt, optionsopt)
A video.js plugin.
In the plugin function, the value of this is a video.js Player
instance. You cannot rely on the player being in a "ready" state here,
depending on how the plugin is invoked. This may or may not be important
to you; if not, remove the wait for "ready"!
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
player |
Object |
<optional> |
A player object. |
|
options |
Object |
<optional> |
{} | An object of options left to the plugin author to define. |
initializeMediaKeys(playeropt, emeOptionsopt)
Sets up MediaKeys on demand
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
player |
Object |
<optional> |
A player object. |
|
emeOptions |
Object |
<optional> |
{} | An object of eme plugin options. |
onPlayerReady(player, optionsopt)
Function to invoke when the player is ready.
This is a great place for your plugin to initialize itself. When this function is called, the player will have its DOM and child components in place.
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
player |
Player | |||
options |
Object |
<optional> |
{} |
setupSessions(player)
Configure a persistent sessions array and activeSrc property to ensure we properly handle each independent source's events. Should be run on any encrypted or needkey style event to ensure that the sessions reflect the active source.
Parameters:
| Name | Type | Description |
|---|---|---|
player |
Player |