Module: LoadVideoContentTask

Methods


<static> FindPreferredAudioStream(streams)

Parameters:
Name Type Description
streams dynamic
Source:
Returns:
Type
integer

<static> LoadItems_AddVideoContent(video, mediaSourceId [, audio_stream_idx] [, subtitle_idx] [, forceTranscoding])

Parameters:
Name Type Argument Default Description
video object
mediaSourceId dynamic
audio_stream_idx integer <optional>
1
subtitle_idx integer <optional>
-1
forceTranscoding boolean <optional>
false
Source:
Returns:
Type
void

<static> LoadItems_VideoPlayer(id [, mediaSourceId] [, audio_stream_idx] [, subtitle_idx] [, forceTranscoding])

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
Source:
Returns:
Type
dynamic

<static> addNextEpisodesToQueue(showID)

Add next episodes to the playback queue

Parameters:
Name Type Description
showID dynamic
Source:
Returns:
Type
void

<static> addSubtitlesToVideo(video, meta)

Parameters:
Name Type Description
video dynamic
meta dynamic
Source:
Returns:
Type
void

<static> addVideoContentURL(video, mediaSourceId, audio_stream_idx, fully_external)

Parameters:
Name Type Description
video dynamic
mediaSourceId dynamic
audio_stream_idx dynamic
fully_external dynamic
Source:
Returns:
Type
void

<static> directPlaySupported(meta)

Parameters:
Name Type Description
meta object
Source:
Returns:
Type
boolean

<static> getContainerType(meta)

Parameters:
Name Type Description
meta object
Source:
Returns:
Type
string

<static> getSubtitleLanguages()

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> init()

Source:
Returns:
Type
void

<static> loadItems()

Source:
Returns:
Type
void

<static> sortSubtitles(id, MediaStreams)

Checks available subtitle tracks and puts subtitles in forced, default, and non-default/forced but preferred language at the top

Parameters:
Name Type Description
id string
MediaStreams dynamic
Source:
Returns:
Type
dynamic