Methods

(static) LoadItems_AddVideoContent(video, mediaSourceId, audio_stream_idxopt, forceTranscodingopt) → {void}

Parameters:
NameTypeAttributesDefaultDescription
videoobject
mediaSourceIddynamic
audio_stream_idxinteger<optional>
1
forceTranscodingboolean<optional>
false
Returns:
Type: 
void

(static) LoadItems_VideoPlayer(id, mediaSourceId, audio_stream_idxopt, forceTranscodingopt) → {dynamic}

Parameters:
NameTypeAttributesDefaultDescription
idstring
mediaSourceIddynamic
audio_stream_idxinteger<optional>
1
forceTranscodingboolean<optional>
false
Returns:
Type: 
dynamic

(static) addAudioStreamsToVideo(video) → {void}

addAudioStreamsToVideo: Add audio stream data to video

Parameters:
NameTypeDescription
videodynamic

component to add fullAudioData to

Returns:
Type: 
void

(static) addNextEpisodesToQueue(showID) → {void}

Add next episodes to the playback queue

Parameters:
NameTypeDescription
showIDdynamic
Returns:
Type: 
void

(static) addSubtitlesToVideo(video, meta) → {void}

Parameters:
NameTypeDescription
videodynamic
metadynamic
Returns:
Type: 
void

(static) directPlaySupported(meta) → {boolean}

Parameters:
NameTypeDescription
metaobject
Returns:
Type: 
boolean

(static) getContainerType(meta) → {string}

Parameters:
NameTypeDescription
metaobject
Returns:
Type: 
string

(static) getTranscodeReasons(url) → {object}

Extract array of Transcode Reasons from the content URL

Parameters:
NameTypeDescription
urlstring
Returns:

Array of Strings

Type: 
object

(static) init() → {void}

Returns:
Type: 
void

(static) loadItems() → {void}

Returns:
Type: 
void

(static) setupVideoContentWithAuth(video, mediaSourceId, audio_stream_idx) → {void}

setupVideoContentWithAuth: Configures video content URL and applies authentication

Determines the appropriate URL based on protocol and stream location, then applies Jellyfin authentication headers for internal streams. External streams (non-localhost) receive the raw URL without authentication to prevent credential leakage.

Protocol handling:

  • "file": Direct stream from Jellyfin server (gets auth)
  • Non-file with localhost domain: Proxied through Jellyfin (gets auth)
  • Non-file with external domain: Direct external URL (NO auth)
Parameters:
NameTypeDescription
videoobject

Video object containing content node to configure

mediaSourceIddynamic

Media source ID or empty string for live streams

audio_stream_idxinteger

Selected audio stream index

Returns:
Type: 
void