Methods
(static) createQueueItem(sourceNode) → {object}
createQueueItem: Create a queue-compatible item from any source node
Extracts only the essential fields needed for playback queue items, avoiding issues with cloning complex UI components like SearchData, GridData, etc.
Essential fields copied:
- id: Item identifier (required)
- type: Media type (required)
- json: Full Jellyfin metadata (required)
- title: Display title (optional)
- mediaSourceId: Media source ID (optional)
- RunTimeTicks: Runtime duration (optional)
Additional fields can be set later by quickplay (selectedAudioStreamIndex, startingPoint)
Parameters:
| Name | Type | Description |
|---|---|---|
sourceNode | object | The source node (any type) to extract data from |
Returns:
Associative array with essential fields, or invalid if sourceNode is invalid
- Type:
- object