Kind: global class
ObjectstringPromiseSourceObjectSourceObjectPromiseNumberNumberPromiseNumberBooleanPromisePromiseBooleanPromisePromisePromiseA player proxy class (last change 2018-11-29T10:24:53.375Z)
ObjectMap player specific events to the corresponding HTML5 MediaEvent
Kind: instance property of FacadeBase
stringRequests the player facade version (API version) to ensure the particular versions of smartclientcore and player facade
are supported.
Kind: instance method of FacadeBase
Returns: string - Supported API version
| Param | Type | Description |
|---|---|---|
| apiFacadeVersion | string |
Required API version |
PromiseRequests the video player to load and play the specified media file.
Kind: instance method of FacadeBase
Returns: Promise - Resolves if the player accepted the media file request
| Param | Type | Default | Description |
|---|---|---|---|
| url | string |
| Media file URI | |
| autoPlay | Boolean |
true |
Whether the requested media file starts playback immediately. |
| disableSeeking | Boolean |
false |
Whether the requested source can be seeked back and forth. |
Sets up a function that will be called whenever the specified event is delivered to the video player.
Kind: instance method of FacadeBase
| Param | Type | Description |
|---|---|---|
| type | string |
A case-sensitive string representing the player event type to listen for. |
| callback | function |
The function which receives a notification when an event of the specified type occurs. |
Removes an event listener from the video player that has been registered with addEventListener()
Note: The event listener to be removed must match with the listener that has been added.
Kind: instance method of FacadeBase
| Param | Type | Description |
|---|---|---|
| type | string |
A case-sensitive string representing the player event type to listen for. |
| callback | function |
The function which receives a notification when an event of the specified type occurs. |
SourceObjectRequests the video player to lock the current content. This happens before starting a new ad break
Kind: instance method of FacadeBase
Returns: SourceObject - Current content source and playhead progress
SourceObjectKind: instance method of FacadeBase
Returns: SourceObject - Current content source and playhead progress
PromiseRequests the video player to return to the content and last known playhead position.
Kind: instance method of FacadeBase
Returns: Promise - Resolves if the player accepted the request
NumberRequests the current playhead position from the video player.
Kind: instance method of FacadeBase
Returns: Number - Current time in seconds.
NumberRequests the content-duration from the video player.
Kind: instance method of FacadeBase
Returns: Number - Total time in seconds.
PromiseRequests the video player to change the volume.
Kind: instance method of FacadeBase
Returns: Promise - Resolves if the video player accepted the volume change request
| Param | Type | Description |
|---|---|---|
| volume | Number |
Requested volume level between 0-1 |
NumberRequests the current volume level from the video player.
Kind: instance method of FacadeBase
Returns: Number - The current volume level between 0-1
BooleanRequests the current muted state from the video player.
Kind: instance method of FacadeBase
Returns: Boolean - Muted state
PromiseRequests the video player to mute playback.
Kind: instance method of FacadeBase
Returns: Promise - Resolves if the video player has been muted
PromiseRequests the video player to unmute playback.
Kind: instance method of FacadeBase
Returns: Promise - Resolves if the video player has been unmuted
BooleanRequests the current play state from the video player.
Kind: instance method of FacadeBase
Returns: Boolean - Playback state
PromiseRequests the video player to pause playback.
Kind: instance method of FacadeBase
Returns: Promise - Resolves if the video player has been paused
PromiseRequests the video player to start (resume) playback.
Kind: instance method of FacadeBase
Returns: Promise - Resolves if the video player has been resumed
PromiseRequests the video player to change the playhead position to the specified time.
Kind: instance method of FacadeBase
Returns: Promise - Resolves if the video player has finished seeking to the specified position
| Param | Type | Description |
|---|---|---|
| offset | Number |
Requested playhead position |