Members
(static, readonly) SubtitleSelection
PropertiesName | Type | Description |
---|---|---|
notset | ||
none |
Methods
(static) FindPreferredAudioStream(streams) → {integer}
Name | Type | Description |
---|---|---|
streams | dynamic |
- Type:
- integer
(static) LoadItems_AddVideoContent(video, mediaSourceId, audio_stream_idxopt, forceTranscodingopt) → {void}
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
video | object | |||
mediaSourceId | dynamic | |||
audio_stream_idx | integer | <optional> | 1 | |
forceTranscoding | boolean | <optional> | false |
- Type:
- void
(static) LoadItems_VideoPlayer(id, mediaSourceIdopt, audio_stream_idxopt, forceTranscodingopt) → {dynamic}
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
id | string | |||
mediaSourceId | dynamic | <optional> | invalid | |
audio_stream_idx | integer | <optional> | 1 | |
forceTranscoding | boolean | <optional> | false |
- Type:
- dynamic
(static) addAudioStreamsToVideo(video) → {void}
addAudioStreamsToVideo: Add audio stream data to video
Name | Type | Description |
---|---|---|
video | dynamic | component to add fullAudioData to |
- Type:
- void
(static) addNextEpisodesToQueue(showID) → {void}
Add next episodes to the playback queue
Name | Type | Description |
---|---|---|
showID | dynamic |
- Type:
- void
(static) addSubtitlesToVideo(video, meta) → {void}
Name | Type | Description |
---|---|---|
video | dynamic | |
meta | dynamic |
- Type:
- void
(static) addVideoContentURL(video, mediaSourceId, audio_stream_idx, fully_external) → {void}
Name | Type | Description |
---|---|---|
video | dynamic | |
mediaSourceId | dynamic | |
audio_stream_idx | dynamic | |
fully_external | dynamic |
- Type:
- void
(static) defaultSubtitleTrack(sortedSubtitles, selectedAudioLanguage, requireTextopt) → {integer}
defaultSubtitleTrack:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
sortedSubtitles | dynamic | array of subtitles sorted by type and language | ||
selectedAudioLanguage | string | language for selected audio track | ||
requireText | boolean | <optional> | false | indicates if only text subtitles should be considered |
indicating the default track's server-side index. Defaults to {SubtitleSelection.none} is one is not found
- Type:
- integer
(static) defaultSubtitleTrackFromVid(videoID) → {integer}
defaultSubtitleTrackFromVid: Identifies the default subtitle track given video id
Name | Type | Description |
---|---|---|
videoID | dynamic | id of video user is playing |
indicating the default track's server-side index. Defaults to {SubtitleSelection.none} is one is not found
- Type:
- integer
(static) directPlaySupported(meta) → {boolean}
Name | Type | Description |
---|---|---|
meta | object |
- Type:
- boolean
(static) getContainerType(meta) → {string}
Name | Type | Description |
---|---|---|
meta | object |
- Type:
- string
(static) getTranscodeReasons(url) → {object}
Extract array of Transcode Reasons from the content URL
Name | Type | Description |
---|---|---|
url | string |
Array of Strings
- Type:
- object
(static) init() → {void}
- Type:
- void
(static) loadItems() → {void}
- Type:
- void
(static) sortSubtitles(id, MediaStreams) → {dynamic}
Checks available subtitle tracks and puts subtitles in forced, default, and non-default/forced but preferred language at the top
Name | Type | Description |
---|---|---|
id | string | |
MediaStreams | dynamic |
- Type:
- dynamic