Richiesta di riordinare un elenco di elementi multimediali in coda.
Costruttore
QueueReorderItemsRequest
new
QueueRiordinaItemsRequest(itemIdsToRiordina)
Parametro
itemIdsToReorder
Array del numero
L'elenco di ID degli elementi multimediali da riordinare. Non deve essere nullo o vuoto.
Il valore non deve essere nullo.
Proprietà
customData
oggetto nullable
Dati personalizzati per l'applicazione destinatario.
insertBefore
numero null
L'ID dell'articolo che verrà posizionato subito dopo l'elenco riordinato.
Se null o non viene trovato, l'elenco riordinato verrà aggiunto alla fine della coda. Questo ID non può essere uno degli ID nell'elenco itemIds.
itemIds
non-null Array del numero
L'elenco di ID degli elementi multimediali da riordinare, nel nuovo ordine. Gli articoli non forniti manterranno l'ordine esistente (senza riordinarli). L'elenco fornito verrà inserito nella posizione determinata da insertBefore.
Ad esempio:
Se insertBefore non è specificato
Coda esistente: "A", "D",", G", H", B", B", E" itemIds: "D", H", B", Nuovo ordine: "A", G", E", "D", H", B",
Se insertBefore è "A"
Coda esistente: "A"",D"",G"",H"",B"
itemIds: "D"",H"",B"
Nuovo ordine: "D"",H"",B","A"",G"",E"
Se insertBefore è "G"
Coda esistente: "A"",D"",G"",H"",B"
itemIds: "D"",H"",B"
Nuovo ordine: "A","D"",H"",B",",G"",E"
Se un elemento non esiste, verrà ignorato.
Non deve essere nullo o vuoto.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Mancano le informazioni di cui ho bisogno","missingTheInformationINeed","thumb-down"],["Troppo complicato/troppi passaggi","tooComplicatedTooManySteps","thumb-down"],["Obsoleti","outOfDate","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Problema relativo a esempi/codice","samplesCodeIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 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"]]