Methods
(static) LoadItems_AddVideoContent(video, mediaSourceId, audio_stream_idxopt, forceTranscodingopt) → {void}
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
video | object | |||
mediaSourceId | dynamic | |||
audio_stream_idx | integer | <optional> | 1 | |
forceTranscoding | boolean | <optional> | false |
Returns:
- Type:
- void
(static) LoadItems_VideoPlayer(id, mediaSourceId, audio_stream_idxopt, forceTranscodingopt) → {dynamic}
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
id | string | |||
mediaSourceId | dynamic | |||
audio_stream_idx | integer | <optional> | 1 | |
forceTranscoding | boolean | <optional> | false |
Returns:
- Type:
- dynamic
(static) addAudioStreamsToVideo(video) → {void}
addAudioStreamsToVideo: Add audio stream data to video
Parameters:
| Name | Type | Description |
|---|---|---|
video | dynamic | component to add fullAudioData to |
Returns:
- Type:
- void
(static) addNextEpisodesToQueue(showID) → {void}
Add next episodes to the playback queue
Parameters:
| Name | Type | Description |
|---|---|---|
showID | dynamic |
Returns:
- Type:
- void
(static) addSubtitlesToVideo(video, meta) → {void}
Parameters:
| Name | Type | Description |
|---|---|---|
video | dynamic | |
meta | dynamic |
Returns:
- Type:
- void
(static) directPlaySupported(meta) → {boolean}
Parameters:
| Name | Type | Description |
|---|---|---|
meta | object |
Returns:
- Type:
- boolean
(static) getContainerType(meta) → {string}
Parameters:
| Name | Type | Description |
|---|---|---|
meta | object |
Returns:
- Type:
- string
(static) getTranscodeReasons(url) → {object}
Extract array of Transcode Reasons from the content URL
Parameters:
| Name | Type | Description |
|---|---|---|
url | string |
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:
| Name | Type | Description |
|---|---|---|
video | object | Video object containing content node to configure |
mediaSourceId | dynamic | Media source ID or empty string for live streams |
audio_stream_idx | integer | Selected audio stream index |
Returns:
- Type:
- void