Methods
(static) OnScreenShown() → {void}
- Source
Returns:
- Type:
- void
(static) createSubtitleDividerNode() → {object}
- Source
Returns:
- Type:
- object
(static) createSubtitleLabelNode(labelId) → {object}
Parameters:
| Name | Type | Description |
|---|---|---|
labelId | string |
- Source
Returns:
- Type:
- object
(static) displaySubtitleNode(node) → {void}
Parameters:
| Name | Type | Description |
|---|---|---|
node | object |
- Source
Returns:
- Type:
- void
(static) inactiveCheck() → {void}
inactiveCheck: Checks if the time since last keypress is greater than or equal to the allowed inactive time of the menu.
- Source
Returns:
- Type:
- void
(static) init() → {void}
- Source
Returns:
- Type:
- void
(static) onButtonSelected() → {void}
- Source
Returns:
- Type:
- void
(static) onFocusChanged() → {void}
- Source
Returns:
- Type:
- void
(static) onKeyEvent(key, press) → {boolean}
Parameters:
| Name | Type | Description |
|---|---|---|
key | string | |
press | boolean |
- Source
Returns:
- Type:
- boolean
(static) onPlaybackStateChanged() → {void}
- Source
Returns:
- Type:
- void
(static) onProgressPercentageChanged() → {void}
- Source
Returns:
- Type:
- void
(static) onVisibleChanged() → {void}
- Source
Returns:
- Type:
- void
(static) populateData() → {void}
- Source
Returns:
- Type:
- void
(static) resetFocusToDefaultButton() → {void}
- Source
Returns:
- Type:
- void
(static) setButtonStates() → {void}
setButtonStates: Disable previous/next buttons if needed and remove any other unneeded buttons
- Source
Returns:
- Type:
- void
(static) setEndsAtText() → {void}
- Source
Returns:
- Type:
- void
(static) setFields() → {void}
setFields: Parses video metadata from JSON and populates OSD component fields
This function processes video data to populate all OSD display fields including title, ratings, runtime, and content type classification (isMovie/isSeries flags).
Content Type Detection: The isMovie and isSeries flags determine which user settings control ratings display:
- isMovie=true: Uses uiMoviesShowRatings setting
- isSeries=true: Uses uiTvShowsDisableCommunityRating setting
Detection Priority (applied in order):
- API flags: Uses IsMovie/IsSeries from Jellyfin server if provided
- Flag validation: Ensures mutual exclusivity (both cannot be true)
- Type-based: Recording types always classified as series content
- Metadata heuristic: Presence of SeriesName/SeasonNumber indicates series
- Default fallback: Assumes movie content if no other indicators
- Source
Returns:
- Type:
- void
(static) setVideoLogoGroup() → {void}
- Source
Returns:
- Type:
- void
(static) setVideoSubTitle() → {void}
- Source
Returns:
- Type:
- void
(static) setVideoTitle() → {void}
- Source
Returns:
- Type:
- void