قائمة
عناصر الوسائط المطلوب إدراجها. يجب ألا يكون صفرًا أو فارغًا. يجب عدم ضبط معرّف item
لكل عنصر (لأنّه سيعيّنه المستلِم).
يجب ألا تكون القيمة فارغة.
أماكن إقامة
customData
كائن قابل للقيم الفارغة
بيانات مخصّصة لتطبيق المُستلِم.
insertBefore
رقم قابل للقيم الفارغة
رقم تعريف العنصر الذي سيتم وضعه بعد القائمة المدرجة مباشرةً.
في حال عدم العثور على قيمة فارغة أو عدم العثور عليها، سيتم إلحاق القائمة بنهاية قائمة الانتظار.
قائمة بعناصر قائمة المحتوى التالي لإدراجها يجب أن يكون حقل itemId للعناصر
فارغًا وإلا سيتعذّر تنفيذ الطلب مع ظهور خطأ INVALID_PARAMS. يتم ترتيب العنصر
(سيتم تشغيل العنصر الأول أولاً).
تاريخ التعديل الأخير: 2025-07-25 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-25 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\u003cp\u003e\u003ccode\u003echrome.cast.media.QueueInsertItemsRequest\u003c/code\u003e is used to insert new media items into an existing queue on a cast receiver.\u003c/p\u003e\n"],["\u003cp\u003eIt requires a list of \u003ccode\u003echrome.cast.media.QueueItem\u003c/code\u003e objects, which represent the media to be added, and these items should not have pre-assigned IDs.\u003c/p\u003e\n"],["\u003cp\u003eYou can optionally specify an existing item ID (\u003ccode\u003einsertBefore\u003c/code\u003e) to insert the new items before that item, otherwise, they are appended to the end.\u003c/p\u003e\n"],["\u003cp\u003eThe request can also include custom data for the receiver application.\u003c/p\u003e\n"]]],[],null,["# Class: QueueInsertItemsRequest\n\nchrome.[cast](/cast/docs/reference/web_sender/chrome.cast).[media](/cast/docs/reference/web_sender/chrome.cast.media).QueueInsertItemsRequest\n=============================================================================================================================================\n\nclass static\n\nA request to insert a list of new media items into the queue.\n\nConstructor\n-----------\n\n### QueueInsertItemsRequest\n\nnew\nQueueInsertItemsRequest(itemsToInsert)\n\n| #### Parameter ||\n|---------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| itemsToInsert | Array of non-null [chrome.cast.media.QueueItem](/cast/docs/reference/web_sender/chrome.cast.media.QueueItem) The list of media items to insert. Must not be null or empty. The itemId of each item must not be set (as they will be assigned by the receiver). Value must not be null. |\n\nProperties\n----------\n\n### customData\n\nnullable Object\n\nCustom data for the receiver application.\n\n### insertBefore\n\nnullable number\n\nID of the item that will be located immediately after the inserted list.\nIf null or not found the list will be appended to the end of the queue.\n\n### items\n\nnon-null Array of non-null [chrome.cast.media.QueueItem](/cast/docs/reference/web_sender/chrome.cast.media.QueueItem)\n\nList of queue items to insert. The itemId field of the items should be\nempty or the request will fail with an INVALID_PARAMS error. It is sorted\n(first element will be played first)."]]