Запрос на изменение порядка списка медиа-элементов в очереди.
Конструктор
ОчередьReorderItemsRequest
новый QueueReorderItemsRequest (itemIdsToReorder)
Параметр
itemIdsToReorder
Массив чисел
Список идентификаторов медиа-элементов для изменения порядка. Не должно быть нулевым или пустым.
Значение не должно быть нулевым.
Характеристики
пользовательские данные
обнуляемый объект
Пользовательские данные для приложения-приемника.
вставитьперед
обнуляемое число
Идентификатор элемента, который будет расположен сразу после переупорядоченного списка. Если значение равно нулю или не найдено, переупорядоченный список будет добавлен в конец очереди. Этот идентификатор не может быть одним из идентификаторов в списке itemIds.
идентификаторы предметов
ненулевой Массив чисел
Список идентификаторов элементов мультимедиа для изменения порядка в новом порядке. Непредоставленные элементы сохранят существующий порядок (без изменения порядка элементов). Предоставленный список будет вставлен в позицию, определенную функцией InsertBefore.
Например:
Если параметр InsertBefore не указан. Существующая очередь: «A», «D», «G», «H», «B», «E» Идентификаторы элементов: «D», «H», «B» Новый заказ: «A» »,G», «E», «D», «H», «B»
Если InsertBefore имеет значение «A», Существующая очередь: «A», «D», «G», «H», «B» Идентификаторы элементов: «D», «H», «B» Новый заказ: «D», «H» «Б», «А», «Г», «Е»
Если вставкаBefore равна «G», Существующая очередь: «A», «D», «G», «H», «B» Идентификаторы элементов: «D», «H», «B» Новый заказ: «A», «D» »»Н»,»Б»,»Г»,»Е»
Если какой-либо из элементов не существует, он будет проигнорирован. Не должно быть нулевым или пустым.
[[["Прост для понимания","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\u003echrome.cast.media.QueueReorderItemsRequest\u003c/code\u003e is used to change the playback order of media items within a queue on a cast receiver.\u003c/p\u003e\n"],["\u003cp\u003eIt requires a list of media item IDs (\u003ccode\u003eitemIds\u003c/code\u003e) to reorder and optionally an \u003ccode\u003einsertBefore\u003c/code\u003e item ID to specify the position in the queue.\u003c/p\u003e\n"],["\u003cp\u003eItems not specified in the \u003ccode\u003eitemIds\u003c/code\u003e array retain their original order relative to each other, with the reordered items inserted as a block.\u003c/p\u003e\n"],["\u003cp\u003eThe reordered items are placed before the item specified by \u003ccode\u003einsertBefore\u003c/code\u003e, or appended to the end of the queue if \u003ccode\u003einsertBefore\u003c/code\u003e is not provided or is invalid.\u003c/p\u003e\n"],["\u003cp\u003eCustom data can be passed to the receiver application using the \u003ccode\u003ecustomData\u003c/code\u003e property.\u003c/p\u003e\n"]]],["The `QueueReorderItemsRequest` class is used to rearrange media items within a queue. It requires an array of `itemIds` to specify the items and their new order. The `insertBefore` property determines where to place the reordered list; if null, it's appended to the end. Items not listed retain their positions, while non-existent items are ignored. Custom data for the receiver can be set. The reordered list will be in the position as specified in the `insertBefore` property.\n"],null,[]]