רשימת המזהים של פריטי המדיה שצריך
לשנות את הסדר שלהם. לא ניתן להשאיר ריק או אפס.
הערך לא יכול להיות ריק.
תכונות
customData
אובייקט null
נתונים בהתאמה אישית לאפליקציה של המקבל.
insertBefore
מספר ריק
מזהה הפריט שימוקם מיד אחרי הרשימה הממוינת מחדש.
אם הערך null או לא נמצא, הרשימה שסדרת מחדש תתווסף בסוף
התור. המזהה הזה לא יכול להיות אחד מהמזהים ברשימת itemIds.
itemIds
מערך מספרים שאינו אפס
רשימת מזהי פריטי המדיה שצריך לסדר מחדש, בסדר החדש. הפריטים שלא
יסופקו יישמרו בסדר הנוכחי (בלי לשנות את הסדר של הפריטים). הרשימה שסופקה תתווסף במיקום שנקבע על ידי insertBefore.
לדוגמה:
אם Insertbefore לא צוין
התור הקיים: "A" ,D" ,G" ,H" ,B" , E"
itemIds: "D" ,H" ,B"
הזמנה חדשה: "A" ,G" ,E ,"D" ,H" ,B""
אם InsertBefore הוא 'A'
תור קיים: 'A', D', 'G', 'H', B'
itemIds: 'D', H', B'
הזמנה חדשה: 'D', H, B, 'A', G', E'
אם InsertBefore הוא 'G'
תור קיים: 'A', 'D', 'G', H', 'B'
itemIds: 'D', H', B'
הזמנה חדשה: 'A', 'D', H, B', G', E'
אם פריט כלשהו אינו קיים, המערכת תתעלם ממנו.
לא ניתן להשאיר ריק או אפס.
[[["התוכן קל להבנה","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,[]]