درخواست برای سفارش مجدد فهرستی از آیتم های رسانه در صف.
سازنده
QueueReorderItemsRequest
جدید QueueReorderItemsRequest(itemIdsToReorder)
پارامتر
itemIdsToReorder
آرایه اعداد
فهرست شناسههای آیتمهای رسانهای که میخواهید مرتب شوند. نباید پوچ یا خالی باشد.
مقدار نباید صفر باشد.
خواص
داده های سفارشی
شیء پوچ
داده های سفارشی برای برنامه گیرنده.
درج قبل از
عدد پوچ
شناسه موردی که بلافاصله پس از فهرست سفارشدهی مجدد قرار میگیرد. اگر تهی یا یافت نشد، لیست دوباره ترتیب داده شده در انتهای صف اضافه می شود. این شناسه نمی تواند یکی از شناسه های موجود در لیست 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"
اگر هر یک از موارد وجود نداشته باشد نادیده گرفته می شود. نباید پوچ یا خالی باشد.
تاریخ آخرین بهروزرسانی 2024-10-30 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2024-10-30 بهوقت ساعت هماهنگ جهانی."],[[["`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"]]