Methods
(static) LoadItems_AddVideoContent(video, mediaSourceId, audioStreamIdxopt, forceTranscodingopt, bypassDoviPreservationopt) → {void}
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
video | object | |||
mediaSourceId | dynamic | |||
audioStreamIdx | integer | <optional> | 1 | |
forceTranscoding | boolean | <optional> | false | |
bypassDoviPreservation | boolean | <optional> | false |
- Type:
- void
(static) LoadItems_VideoPlayer(id, mediaSourceId, audioStreamIdxopt, forceTranscodingopt, bypassDoviPreservationopt) → {dynamic}
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
id | string | |||
mediaSourceId | dynamic | |||
audioStreamIdx | integer | <optional> | 1 | |
forceTranscoding | boolean | <optional> | false | |
bypassDoviPreservation | boolean | <optional> | false |
- Type:
- dynamic
(static) addAudioStreamsToVideo(video, meta, mediaSourceId) → {void}
addAudioStreamsToVideo: Populate video.fullAudioData with the item's audio tracks.
Sources from the original item metadata (meta.mediaSourcesData) — NOT from the PlaybackInfo response. The /PlaybackInfo response can return a transcode-shaped MediaSource carrying only the chosen audio stream, which would shrink the OSD picker to a single entry (issue #500). The OSD picker must always list every original track so the user can switch.
| Name | Type | Description |
|---|---|---|
video | object | video AA receiving the fullAudioData field |
meta | dynamic | item metadata (from ItemMetaData) holding mediaSourcesData |
mediaSourceId | dynamic | chosen MediaSource ID (matches one entry under meta.mediaSourcesData.mediaSources) |
- 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) directPlaySupported(meta) → {boolean}
| Name | Type | Description |
|---|---|---|
meta | object |
- Type:
- boolean
(static) init() → {void}
- Type:
- void
(static) loadItems() → {void}
- Type:
- void
(static) setupVideoContentWithAuth(video, mediaSourceId, audioStreamIdx) → {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)
| Name | Type | Description |
|---|---|---|
video | object | Video object containing content node to configure |
mediaSourceId | dynamic | Media source ID or empty string for live streams |
audioStreamIdx | integer | Selected audio stream index |
- Type:
- void