Methods
(static) cancelActiveQuickPlayTask() → {void}
Stop, unobserve, and drop the in-flight QuickPlayTask if one exists. Safe to call when none is active. The single teardown path for m.activeQuickPlayTask (reused by onQuickPlayTaskOutput).
- Type:
- void
(static) clear() → {void}
Clear all content from play queue
- Type:
- void
(static) clearHold() → {void}
Clear all hold content
- Type:
- void
(static) deleteAtIndex(index) → {void}
Delete item from play queue at passed index
| Name | Type | Description |
|---|---|---|
index | dynamic |
- Type:
- void
(static) getCount() → {dynamic}
Return the number of items in the play queue
- Type:
- dynamic
(static) getCurrentItem() → {dynamic}
Return the item currently in focus from the play queue
- Type:
- dynamic
(static) getHold() → {dynamic}
Return the items in the hold
- Type:
- dynamic
(static) getIsShuffled() → {dynamic}
Return whether or not shuffle is enabled
- Type:
- dynamic
(static) getItemByIndex(index) → {dynamic}
Return the item in the passed index from the play queue
| Name | Type | Description |
|---|---|---|
index | dynamic |
- Type:
- dynamic
(static) getItemType(item) → {string}
getItemType: Returns the media type of the passed item
| Name | Type | Description |
|---|---|---|
item | dynamic | Item to evaluate |
indicating type of media item is
- Type:
- string
(static) getPosition() → {dynamic}
Returns current playback position within the queue
- Type:
- dynamic
(static) getQueue() → {dynamic}
Return the current play queue
- Type:
- dynamic
(static) getQueueTypes() → {dynamic}
Return the types of items in current play queue
- Type:
- dynamic
(static) getQueueUniqueTypes() → {dynamic}
Return the unique types of items in current play queue
- Type:
- dynamic
(static) getUnshuffledQueue() → {dynamic}
Return original, unshuffled queue
- Type:
- dynamic
(static) hold(newItem) → {void}
Hold an item
| Name | Type | Description |
|---|---|---|
newItem | dynamic |
- Type:
- void
(static) init() → {void}
- Type:
- void
(static) isPrerollActive() → {boolean}
Return isPrerollActive status
- Type:
- boolean
(static) launchItem(itemNode) → {void}
Single-tap playback launcher. Routed views (Home rows / library grids / search / details extras) call this directly. Synchronous types build the queue inline via the quickplay.* helpers + playQueue (which routes to PlayerHostView); async types (need an API call to expand into a queue) go through QuickPlayTask.
| Name | Type | Description |
|---|---|---|
itemNode | object |
- Type:
- void
(static) launchPhotoAlbum(isRandom, id) → {void}
Launch a PhotoAlbum slideshow. isRandom = true is the Shuffle button (random slideshow); false is the Slideshow button (sequential). Sets the shuffle mode the onQuickPlayTaskOutput photo branch reads, then runs the loadPhotoAlbum task.
| Name | Type | Description |
|---|---|---|
isRandom | boolean | |
id | string |
- Type:
- void
(static) launchQuickPlayAction(input) → {void}
Run a QuickPlayTask for an async playback action and route its output to the queue. Used by launchItem's async branch (item taps that expand into a queue) and by the ItemDetails playAll / trailer / instant-mix / slideshow buttons. Owns the task on this node's render thread. Clears the queue up front so the QuickPlayTask output (which appends via pushToQueue / set) starts from empty.
| Name | Type | Description |
|---|---|---|
input | object |
- Type:
- void
(static) launchShuffle(input) → {void}
Shuffle-play a Series / Season / Person via GetShuffleItemsTask (the API resolves the randomized item set off the render thread). Owns the task on this node. PhotoAlbum shuffle does NOT come here — it launches a random slideshow through launchPhotoAlbum instead.
| Name | Type | Description |
|---|---|---|
input | object |
- Type:
- void
(static) moveBack() → {void}
Move queue position back one
- Type:
- void
(static) moveForward() → {void}
Move queue position ahead one
- Type:
- void
(static) onQuickPlayTaskOutput() → {void}
QuickPlayTask finished — build the queue from its output and play (ported from main.bs's handleQuickPlayOutput). Photo output still pushes a PhotoDetails scene; that moves to the /photo route in a later step.
- Type:
- void
(static) onShuffleItemsLoaded() → {void}
GetShuffleItemsTask finished — set the resolved items as the queue and play. The task already randomizes server-side; toggleShuffle applies the Fisher-Yates client shuffle on top when there's more than one item.
- Type:
- void
(static) peek() → {dynamic}
Return item at end of play queue without removing
- Type:
- dynamic
(static) playQueue() → {void}
Play items in queue.
QueueManager has no router chain, so it can't navigateTo — it sets m.global.playbackLaunchRequest and JRScene.onPlaybackLaunchRequested turns that into the route: audio -> /audio (AudioPlayerView), every video-family type -> the play route (/details/:type/:id/play, PlayerHostView). The view reads this same queue on mount. In-view queue advancement (next-item / Live TV restart / channel switch) does NOT come back through here — the video host remounts its child; the audio view reloads in place.
- Type:
- void
(static) pop() → {void}
Remove item at end of play queue
- Type:
- void
(static) push(newItem) → {void}
Push new items to the play queue
| Name | Type | Description |
|---|---|---|
newItem | dynamic |
- Type:
- void
(static) resetQueueItemOrder() → {void}
Reset queue items back to original, unshuffled order
- Type:
- void
(static) resetShuffle() → {void}
Reset shuffle to off state
- Type:
- void
(static) set(items) → {void}
Replace play queue with passed array
| Name | Type | Description |
|---|---|---|
items | dynamic |
- Type:
- void
(static) setCurrentStartingPoint(positionTicks) → {void}
Set starting point for the current item in the queue
| Name | Type | Description |
|---|---|---|
positionTicks | dynamic |
- Type:
- void
(static) setPosition(newPosition) → {void}
Set the queue position
| Name | Type | Description |
|---|---|---|
newPosition | dynamic |
- Type:
- void
(static) setPrerollStatus(newStatus) → {void}
Set prerollActive status
| Name | Type | Description |
|---|---|---|
newStatus | boolean |
- Type:
- void
(static) shuffleQueueItems() → {void}
Save a copy of the original queue and randomize order of queue items
- Type:
- void
(static) toggleShuffle() → {void}
Toggle shuffleEnabled state
- Type:
- void
(static) top() → {dynamic}
Return the fitst item in the play queue
- Type:
- dynamic