Eine Anfrage zum Neuanordnen einer Liste der Medienelemente in der Warteschlange.
Konstruktor
QueueReorderItemsRequest
neu
QueueReorderItemsRequest(itemIdsToReorder)
Parameter
itemIdsToReorder
Array mit Zahlen
Die Liste der IDs der Medienelemente, die neu angeordnet werden sollen. Darf nicht null oder leer sein.
Der Wert darf nicht null sein.
Attribute
customData
Objekt, für das Nullwerte zulässig sind
Benutzerdefinierte Daten für die Empfängeranwendung.
insertBefore
Nullwerte (Zahl)
ID des Artikels, der direkt nach der neu angeordneten Liste erscheint
Wenn null oder nicht gefunden, wird die neu angeordnete Liste an das Ende der Warteschlange angehängt. Diese ID darf nicht in der „itemIds“-Liste enthalten sein.
itemIds
Nicht-Null-Array von Zahlen
Die Liste der IDs der Medienelemente, die neu angeordnet werden sollen, in der neuen Reihenfolge. Nicht angegebene Artikel behalten ihre aktuelle Reihenfolge bei, ohne dass die Artikel neu angeordnet werden. Die bereitgestellte Liste wird an der durch „insertBefore“ festgelegten Position eingefügt.
Beispiel:
Wenn "insertBefore" nicht angegeben ist
Vorhandene Warteschlange: "A", "D", "G", "H", "B", "E"
itemIds: "D" "H", "B"
Neue Reihenfolge: "A", "G", "E", "D", "H" "B"
Wenn "insertBefore" "A" ist
Vorhandene Warteschlange: "A", "D", "G", "H", "B"
itemIds: "D" "H" "B"
Neue Reihenfolge: "D", "H", "B", "A", "G", "E"
Wenn "insertBefore" "G" ist
Vorhandene Warteschlange: "A", "D", "G", "H", "B"
itemIds: "D", "H",B"
Neue Reihenfolge: "A", "D", "H", "B", "G", "E"
Ist eines der Elemente nicht vorhanden, wird es ignoriert.
Darf nicht null oder leer sein.
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Benötigte Informationen nicht gefunden","missingTheInformationINeed","thumb-down"],["Zu umständlich/zu viele Schritte","tooComplicatedTooManySteps","thumb-down"],["Nicht mehr aktuell","outOfDate","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Problem mit Beispielen/Code","samplesCodeIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 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"]]