Sıradaki medya öğeleri listesini yeniden sıralama isteği.
Marka
QueueReorderItemsRequest
yeni
QueueReorderItemsRequest(itemIdsToReorder)
Parametre
itemIdsToReorder
Sayı dizisi
Yeniden sıralanacak medya öğesi kimliklerinin listesi. Boş veya değer atanmamış olmamalıdır.
Değer boş olamaz.
Özellikler
customData
null özellikli Nesne
Alıcı uygulamanın özel verileri.
insertBefore
null özellikli sayı
Yeniden sıralanan listeden hemen sonra yerleştirilecek öğenin kimliği.
null değerine ayarlanırsa veya bulunmazsa yeniden sıralanan liste, sıranın sonuna eklenir. Bu kimlik, itemId listesindeki kimliklerden biri olamaz.
itemIds
null olmayan sayı dizisi
Yeniden sıralanacak medya öğesi kimliklerinin listesi (yeni sırada). Sağlanmayan ürünlerin mevcut sırası korunur (öğeler yeniden sıralanmaz). Sağlanan liste, insertBefore tarafından belirlenen konuma eklenir.
Örneğin:
insertBefore belirtilmezse
Mevcut sıra: "A","D","G""H"","B",E"
itemIds: "D""""""B"
Yeni Sıralama: "A""G"""E""D""H""B"
InsertBefore "A" ise
Mevcut sıra: "A","D",G","H","B"
itemIds: "D""H""B"
Yeni Sıralama: "D"""H""B","A",G""E"
InsertBefore "G" ise
Mevcut sıra: "A","D",G""H","B"
itemIds: "D""H""B"
Yeni Sıralama: "A","D""H","B",G","E"
Öğelerden herhangi biri mevcut değilse yok sayılır.
Boş veya değer atanmamış olmamalıdır.
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 2023-12-02 UTC."],[[["`chrome.cast.media.QueueReorderItemsRequest` is used to change the playback order of media items within a queue on a cast receiver."],["It requires a list of media item IDs (`itemIds`) to reorder and optionally an `insertBefore` item ID to specify the position in the queue."],["Items not specified in the `itemIds` array retain their original order relative to each other, with the reordered items inserted as a block."],["The reordered items are placed before the item specified by `insertBefore`, or appended to the end of the queue if `insertBefore` is not provided or is invalid."],["Custom data can be passed to the receiver application using the `customData` property."]]],["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"]]