The algorithm for selection of the next item when the current item has
ended.
Default value
chrome.cast.media.RepeatMode.OFF
startIndex
number
The index of the item in the items array that must be the first
currentItem (the item that will be played first). Note this is the index
of the array (starts at 0) and not the itemId (as it is not known until
the queue is created). If repeatMode is chrome.cast.media.RepeatMode.OFF
playback will end when the last item in the array is played (elements
before the startIndex will not be played). This may be useful for
continuation scenarios where the user was already using the sender app
and in the middle decides to cast. In this way the sender app does not
need to map between the local and remote queue positions or saves one
extra request to update the queue.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["`QueueLoadRequest` is used to load and potentially start playing a new, ordered list of media items on a Cast receiver."],["It requires an array of `QueueItem` objects, specifying the media to be loaded and played."],["Options for playback behavior include `customData`, `repeatMode`, and `startIndex` for controlling how the queue is handled."],["`repeatMode` determines how the queue behaves after the last item is played (e.g., repeating the queue, repeating a single item, or stopping)."],["`startIndex` allows you to specify which item in the queue should be played first, useful for resuming playback from a specific point."]]],["The `QueueLoadRequest` class manages loading and playing an ordered list of media items. It requires a non-empty array of `QueueItem` objects. Key properties include `items` (the media list), `repeatMode` (playback behavior after an item ends), `startIndex` (specifying the first item to play by its index), and `customData` (for receiver app customization). `startIndex` defaults to 0, and `repeatMode` defaults to OFF. The provided array is sorted by index.\n"]]