Kind: interface
stringBooleanContentSource(#ContentSource)ContentSource(#ContentSource)BooleanMediaErrorNumberNumberElementSizeElementSizeBooleanBooleanStringRequests 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 |
Requests the video player to load and play the specified media file.
Kind: instance method of FacadeBase
| 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. |
ContentSourceKind: instance method of FacadeBase
Returns: SourceObject - Current content source and playhead progress
ContentSourceShould freeze the current playback state (for later use with releaseContent())
and respond to the PublisherAPI once finished.
Kind: instance method of FacadeBase
Returns: ContentSource - Current content source and playhead progress for VAST tracking enrichment
Should restore the last known playback state, resume playback and respond to the PublisherAPI once finished.
Kind: instance method of FacadeBase
MediaErrorRequests details about the most recent error that has occurred on the video player.
Kind: instance method of FacadeBase
Returns: MediaError - Description object of the most recent error or null.
DoubleRequests the current playhead position from the video player.
Kind: instance method of FacadeBase
Returns: Double - Current time in seconds.
DoubleRequests the content-duration from the video player.
Kind: instance method of FacadeBase
Returns: Double - Total time in seconds.
ElementSizeRequests the current size and viewMode from the video player.
Kind: instance method of FacadeBase
Returns: ElementSize - Current player dimension specs
ElementSizeRequests the current size and viewMode from the viewport that surrounds the video player.
Kind: instance method of FacadeBase
Returns: ElementSize - The dimension specs of the element
Requests the video player to change the volume.
Kind: instance method of FacadeBase
| Param | Type | Description |
|---|---|---|
| volume | Number |
Requested volume level between 0-1 |
DoubleRequests the current volume level from the video player.
Kind: instance method of FacadeBase
Returns: Double - 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
Requests the video player to mute playback.
Kind: instance method of FacadeBase
Requests the video player to unmute playback.
Kind: instance method of FacadeBase
BooleanRequests the current play state from the video player.
Kind: instance method of FacadeBase
Returns: Boolean - Playback state
Requests the video player to pause playback.
Kind: instance method of FacadeBase
Requests the video player to start (resume) playback.
Kind: instance method of FacadeBase
Requests the video player to change the playhead position to the specified time.
Kind: instance method of FacadeBase
| Param | Type | Description |
|---|---|---|
| offset | Number |
Requested playhead position |
ObjectKind: global typedef
Properties
| Name | Type | Description |
|---|---|---|
| code | Number |
A number which represents the general type of error that occurred. |
| message | string |
A human-readable string which provides specific diagnostic information to help the reader understand the error condition which occurred. |
ObjectKind: global typedef
Properties
| Name | Type | Description |
|---|---|---|
| rect | Rect |
A android.graphics.Rect that holds four integer coordinates for a rectangle |
| viewMode | String |
Either normal or fullscreen |