सूची में मीडिया आइटम की सूची को फिर से क्रम में लगाने का अनुरोध.
निर्माता
QueueReorderItemsRequest
नया
QueueReorderItemRequest(itemIdsToReorder)
पैरामीटर
itemIdsToReorder
संख्या की अरे
फिर से क्रम में लगाने के लिए मीडिया आइटम के आईडी की सूची. इसे खाली या खाली नहीं होना चाहिए.
वैल्यू शून्य नहीं होनी चाहिए.
प्रॉपर्टी
customData
शून्य जा सकने वाला ऑब्जेक्ट
रिसीवर के ऐप्लिकेशन के लिए पसंद के मुताबिक डेटा.
insertBefore
शून्य नंबर
उस आइटम का आईडी जो फिर से क्रम में लगाई गई सूची के तुरंत बाद मौजूद होगा.
अगर यह सूची शून्य है या नहीं मिलती है, तो क्रम वाली सूची को
सूची के आखिर में जोड़ दिया जाएगा. इस आईडी को itemIds की सूची में शामिल आईडी में से कोई आईडी नहीं होना चाहिए.
itemIds
संख्या की गैर-शून्य श्रेणी
उन मीडिया आइटम के आईडी की सूची जिन्हें नए क्रम में फिर से क्रम में लगाना है. जो आइटम
उपलब्ध नहीं कराए गए हैं वे अपना मौजूदा क्रम बनाए रखेंगे. साथ ही, आइटम का क्रम
तय नहीं होगा. दी गई सूची को उस जगह पर शामिल किया जाएगा जो नीचे दिए गए डेटा को पहले डालें.
उदाहरण के लिए:
अगर Insert पहले के बारे में नहीं बताया गया है,
तो मौजूदा सूची: “A”,”D”,”G”,”H”,”B”,”E”
itemIds: “D”,”H”,”B”
नया ऑर्डर: “A”,”G”,”E”,“D”,”H”,”B”
अगर Insert इससे “A”, मौजूदा सूची: “A”,”D”,”G”,”H”,”B”
itemIds: “D”,”H”,”B” है
अगर Insert पहले “G” है
अगर कोई आइटम मौजूद नहीं है, तो उसे अनदेखा कर दिया जाएगा.
इसे खाली या खाली नहीं होना चाहिए.
[[["समझने में आसान है","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-25 (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,[]]