Алгоритм выбора следующего элемента, когда текущий элемент закончился.
Значение по умолчанию
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."],[[["\u003cp\u003e\u003ccode\u003eQueueLoadRequest\u003c/code\u003e is used to load and potentially start playing a new, ordered list of media items on a Cast receiver.\u003c/p\u003e\n"],["\u003cp\u003eIt requires an array of \u003ccode\u003eQueueItem\u003c/code\u003e objects, specifying the media to be loaded and played.\u003c/p\u003e\n"],["\u003cp\u003eOptions for playback behavior include \u003ccode\u003ecustomData\u003c/code\u003e, \u003ccode\u003erepeatMode\u003c/code\u003e, and \u003ccode\u003estartIndex\u003c/code\u003e for controlling how the queue is handled.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003erepeatMode\u003c/code\u003e determines how the queue behaves after the last item is played (e.g., repeating the queue, repeating a single item, or stopping).\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003estartIndex\u003c/code\u003e allows you to specify which item in the queue should be played first, useful for resuming playback from a specific point.\u003c/p\u003e\n"]]],["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"],null,[]]