- Source
Methods
(static) AddVideoContent(video, mediaSourceId, audio_stream_idxopt, subtitle_idxopt, playbackPositionopt, forceTranscodingopt, showIntroopt, allowResumeDialogopt) → {void}
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
video | object | |||
mediaSourceId | dynamic | |||
audio_stream_idx | integer | <optional> | 1 | |
subtitle_idx | integer | <optional> | -1 | |
playbackPosition | integer | <optional> | -1 | |
forceTranscoding | boolean | <optional> | false | |
showIntro | boolean | <optional> | true | |
allowResumeDialog | boolean | <optional> | true |
- Source
Returns:
- Type:
- void
(static) GetPlaybackInfo() → {dynamic}
Returns an array of playback info to be displayed during playback. In the future, with a custom playback info view, we can return an associated array.
- Source
Returns:
- Type:
- dynamic
(static) GetTranscodingStats(deviceSession) → {dynamic}
Parameters:
Name | Type | Description |
---|---|---|
deviceSession | dynamic |
- Source
Returns:
- Type:
- dynamic
(static) PlayIntroVideo(video_id, audio_stream_idx) → {boolean}
Parameters:
Name | Type | Description |
---|---|---|
video_id | dynamic | |
audio_stream_idx | dynamic |
- Source
Returns:
- Type:
- boolean
(static) VideoPlayer(id, mediaSourceIdopt, audio_stream_idxopt, subtitle_idxopt, forceTranscodingopt, showIntroopt, allowResumeDialogopt) → {dynamic}
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
id | string | |||
mediaSourceId | dynamic | <optional> | invalid | |
audio_stream_idx | integer | <optional> | 1 | |
subtitle_idx | integer | <optional> | -1 | |
forceTranscoding | boolean | <optional> | false | |
showIntro | boolean | <optional> | true | |
allowResumeDialog | boolean | <optional> | true |
- Source
Returns:
- Type:
- dynamic
(static) autoPlayNextEpisode(videoID, showID) → {void}
Parameters:
Name | Type | Description |
---|---|---|
videoID | string | |
showID | string |
- Source
Returns:
- Type:
- void
(static) directPlaySupported(meta) → {boolean}
Parameters:
Name | Type | Description |
---|---|---|
meta | object |
- Source
Returns:
- Type:
- boolean
(static) getAudioFormat(meta) → {string}
Parameters:
Name | Type | Description |
---|---|---|
meta | object |
- Source
Returns:
- Type:
- string
(static) getAudioInfo(meta) → {object}
Parameters:
Name | Type | Description |
---|---|---|
meta | object |
- Source
Returns:
- Type:
- object
(static) getContainerType(meta) → {string}
Parameters:
Name | Type | Description |
---|---|---|
meta | object |
- Source
Returns:
- Type:
- string
(static) getDisplayBitrate(bitrate) → {dynamic}
Parameters:
Name | Type | Description |
---|---|---|
bitrate | dynamic |
- Source
Returns:
- Type:
- dynamic
(static) getTranscodeReasons(url) → {object}
Extract array of Transcode Reasons from the content URL
Parameters:
Name | Type | Description |
---|---|---|
url | string |
- Source
Returns:
Array of Strings
- Type:
- object
(static) havePlaybackInfo() → {dynamic}
- Source
Returns:
- Type:
- dynamic
(static) startPlayBackOver(time) → {integer}
Opens dialog asking user if they want to resume video or start playback over only on the home screen
Parameters:
Name | Type | Description |
---|---|---|
time | longinteger |
- Source
Returns:
- Type:
- integer