Алгоритм выбора следующего элемента, когда текущий элемент закончился.
Значение по умолчанию
chrome.cast.media.RepeatMode.OFF
startIndex
число
Индекс элемента в массиве items, который должен быть первым currentItem (элемент, который будет воспроизведен первым). Обратите внимание, что это индекс массива (начинается с 0), а не идентификатор элемента (поскольку он неизвестен до создания очереди). Если для режима повторения задано значение chrome.cast.media.RepeatMode.OFF, воспроизведение завершится при воспроизведении последнего элемента массива (элементы до startIndex воспроизводиться не будут). Это может быть полезно для сценариев продолжения, когда пользователь уже использовал приложение-отправитель и в середине решает выполнить трансляцию. Таким образом, приложению-отправителю не нужно сопоставлять позиции локальной и удаленной очереди или сохранять один дополнительный запрос на обновление очереди.
[[["Прост для понимания","easyToUnderstand","thumb-up"],["Помог мне решить мою проблему","solvedMyProblem","thumb-up"],["Другое","otherUp","thumb-up"]],[["Отсутствует нужная мне информация","missingTheInformationINeed","thumb-down"],["Слишком сложен/слишком много шагов","tooComplicatedTooManySteps","thumb-down"],["Устарел","outOfDate","thumb-down"],["Проблема с переводом текста","translationIssue","thumb-down"],["Проблемы образцов/кода","samplesCodeIssue","thumb-down"],["Другое","otherDown","thumb-down"]],["Последнее обновление: 2025-07-24 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"]]