- Source:
Methods
-
<static> AddVideoContent(video, mediaSourceId [, audio_stream_idx] [, subtitle_idx] [, playbackPosition] [, forceTranscoding] [, showIntro] [, allowResumeDialog])
-
Parameters:
Name Type Argument 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()
-
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)
-
Parameters:
Name Type Description deviceSession
dynamic - Source:
Returns:
- Type
- dynamic
-
<static> PlayIntroVideo(video_id, audio_stream_idx)
-
Parameters:
Name Type Description video_id
dynamic audio_stream_idx
dynamic - Source:
Returns:
- Type
- boolean
-
<static> VideoPlayer(id [, mediaSourceId] [, audio_stream_idx] [, subtitle_idx] [, forceTranscoding] [, showIntro] [, allowResumeDialog])
-
Parameters:
Name Type Argument 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)
-
Parameters:
Name Type Description videoID
string showID
string - Source:
Returns:
- Type
- void
-
<static> directPlaySupported(meta)
-
Parameters:
Name Type Description meta
object - Source:
Returns:
- Type
- boolean
-
<static> getAudioFormat(meta)
-
Parameters:
Name Type Description meta
object - Source:
Returns:
- Type
- string
-
<static> getAudioInfo(meta)
-
Parameters:
Name Type Description meta
object - Source:
Returns:
- Type
- object
-
<static> getContainerType(meta)
-
Parameters:
Name Type Description meta
object - Source:
Returns:
- Type
- string
-
<static> getDisplayBitrate(bitrate)
-
Parameters:
Name Type Description bitrate
dynamic - Source:
Returns:
- Type
- dynamic
-
<static> getTranscodeReasons(url)
-
Extract array of Transcode Reasons from the content URL
Parameters:
Name Type Description url
string - Source:
Returns:
- Array of Strings
- Type
- object
-
<static> havePlaybackInfo()
-
- Source:
Returns:
- Type
- dynamic
-
<static> startPlayBackOver(time)
-
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