Yêu cầu xoá danh sách các mục khỏi hàng đợi. Nếu hàng đợi còn lại trống, phiên phát nội dung đa phương tiện sẽ bị chấm dứt.
Hàm dựng
QueueRemoveItemsRequest
mới
Hàng đợiRemoveItemsRequest(itemIdsToRemove)
Thông số
itemIdsToRemove
Mảng số
Danh sách mã mục nội dung đa phương tiện cần xoá. Không được để trống hoặc không có giá trị rỗng.
Giá trị không được rỗng.
Thuộc tính
customData
Đối tượng rỗng
Dữ liệu tuỳ chỉnh cho ứng dụng nhận.
itemIds
mảng số không rỗng
Danh sách mã mục nội dung đa phương tiện cần xoá. Nếu không có mục nào tồn tại thì mục đó sẽ bị bỏ qua. Những mã mặt hàng trùng lặp cũng sẽ bị bỏ qua. Không được để trống hoặc để trống.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-25 UTC."],[[["\u003cp\u003e\u003ccode\u003echrome.cast.media.QueueRemoveItemsRequest\u003c/code\u003e is used to remove items from the media queue during a Cast session.\u003c/p\u003e\n"],["\u003cp\u003eIt requires an array of \u003ccode\u003eitemIds\u003c/code\u003e to specify which items should be removed.\u003c/p\u003e\n"],["\u003cp\u003eIf the queue becomes empty after removal, the media session will end.\u003c/p\u003e\n"],["\u003cp\u003eCustom data can be included in the request for the receiver application.\u003c/p\u003e\n"]]],[],null,["# Class: QueueRemoveItemsRequest\n\nchrome.[cast](/cast/docs/reference/web_sender/chrome.cast).[media](/cast/docs/reference/web_sender/chrome.cast.media).QueueRemoveItemsRequest\n=============================================================================================================================================\n\nclass static\n\nA request to remove a list of items from the queue. If the remaining queue is\nempty, the media session will be terminated.\n\nConstructor\n-----------\n\n### QueueRemoveItemsRequest\n\nnew\nQueueRemoveItemsRequest(itemIdsToRemove)\n\n| #### Parameter ||\n|-----------------|----------------------------------------------------------------------------------------------------------|\n| itemIdsToRemove | Array of number The list of media item IDs to remove. Must not be null or empty. Value must not be null. |\n\nProperties\n----------\n\n### customData\n\nnullable Object\n\nCustom data for the receiver application.\n\n### itemIds\n\nnon-null Array of number\n\nThe list of media item IDs to remove. If any of the items does not exist\nit will be ignored. Duplicated item IDs will also be ignored. Must not be\nnull or empty."]]