ID Item media saat ini setelah penghapusan (jika tidak diberikan, nilai currentItem akan sama seperti sebelum penghapusan; jika tidak ada karena telah dihapus, currentItem akan mengarah ke item logis berikutnya dalam daftar).
currentTime
(angka atau tidak ditentukan)
Detik sejak awal konten untuk memulai pemutaran item
saat ini. Jika diberikan, nilai ini akan lebih diutamakan daripada nilai startTime yang diberikan di tingkat QueueItem tetapi hanya saat item pertama kali diputar. Ini untuk mencakup kasus umum saat pengguna melompat ke
tengah item sehingga currentTime tidak berlaku untuk item
secara permanen seperti yang dilakukan startTime QueueItem. Dengan cara ini, Anda tidak perlu mereset startTime secara dinamis (yang mungkin tidak memungkinkan jika ponsel sudah dalam mode tidur).
customData
(Objek non-null atau tidak ditentukan)
Data khusus aplikasi untuk permintaan ini. Hal ini memungkinkan pengirim dan penerima memperluas protokol media dengan mudah tanpa harus menggunakan namespace baru dengan pesan kustom.
Nomor untuk menyinkronkan semua perintah antrean.
Jika diberikan untuk perintah antrean, SDK akan memverifikasi bahwa nomor urut antrean terbaru cocok dengan permintaan.
SequenceNumber saat ini diberikan sebagai bagian dari antrean keluar pesan
yang diubah.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-07-25 UTC."],[[["\u003cp\u003e\u003ccode\u003eQueueRemoveRequestData\u003c/code\u003e is a class used for sending requests to remove items from a media queue in the Cast framework.\u003c/p\u003e\n"],["\u003cp\u003eIt allows specifying the \u003ccode\u003eitemIds\u003c/code\u003e to be removed and optional parameters like \u003ccode\u003ecurrentItemId\u003c/code\u003e, \u003ccode\u003ecurrentTime\u003c/code\u003e, and \u003ccode\u003ecustomData\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eQueueRemoveRequestData\u003c/code\u003e inherits properties from \u003ccode\u003ecast.framework.messages.RequestData\u003c/code\u003e such as \u003ccode\u003emediaSessionId\u003c/code\u003e, \u003ccode\u003erequestId\u003c/code\u003e, and \u003ccode\u003esequenceNumber\u003c/code\u003e for request management.\u003c/p\u003e\n"],["\u003cp\u003eThe request data includes an array of \u003ccode\u003eitemIds\u003c/code\u003e representing the queue items to delete, enabling the receiver to process the removal.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can leverage \u003ccode\u003ecurrentItemId\u003c/code\u003e and \u003ccode\u003ecurrentTime\u003c/code\u003e to control playback behavior after the deletion, ensuring a smooth transition in the media queue.\u003c/p\u003e\n"]]],["`QueueRemoveRequestData` facilitates removing items from a media queue. Key actions involve specifying `itemIds`, an array of numbers representing the IDs of items to delete. Optional data includes `currentItemId` to indicate the next item post-deletion, `currentTime` for playback start time, and `customData` for application-specific extensions. It also inherits properties like `mediaSessionId`, `requestId`, and `sequenceNumber` for request management and synchronization. The constructor initializes with `itemIds`.\n"],null,["cast.[framework](/cast/docs/reference/web_receiver/cast.framework).[messages](/cast/docs/reference/web_receiver/cast.framework.messages).QueueRemoveRequestData \nclass static\n\nMedia event queue REMOVE request data.\n\nConstructor\n\nQueueRemoveRequestData\n\nnew\nQueueRemoveRequestData(itemIds)\n\n| Parameter ||\n|---------|--------------------------------------------------------------------------|\n| itemIds | Array of number The IDs of the items to reorder. Value must not be null. |\n\nExtends\n: [cast.framework.messages.RequestData](/cast/docs/reference/web_receiver/cast.framework.messages.RequestData)\n\nProperties\n\ncurrentItemId\n\n(number or undefined)\n\nID of the current media Item after the deletion (if not provided, the\ncurrentItem value will be the same as before the deletion; if it does not\nexist because it has been deleted, the currentItem will point to the next\nlogical item in the list).\n\ncurrentTime\n\n(number or undefined)\n\nSeconds since the beginning of content to start playback of the current\nitem. If provided, this value will take precedence over the startTime\nvalue provided at the QueueItem level but only the first time the item is\nplayed. This is to cover the common case where the user jumps to the\nmiddle of an item so the currentTime does not apply to the item\npermanently like the QueueItem startTime does. It avoids having to reset\nthe startTime dynamically (that may not be possible if the phone has gone\nto sleep).\n\ncustomData\n\n(non-null Object or undefined)\n\nApplication-specific data for this request. It enables the sender and\nreceiver to easily extend the media protocol without having to use a new\nnamespace with custom messages.\n\nInherited from\n: [cast.framework.messages.RequestData#customData](/cast/docs/reference/web_receiver/cast.framework.messages.RequestData#customData)\n\nitemIds\n\nnon-null Array of number\n\nIDs of queue items to be deleted.\n\nmediaSessionId\n\n(number or undefined)\n\nId of the media session that the request applies to.\n\nInherited from\n: [cast.framework.messages.RequestData#mediaSessionId](/cast/docs/reference/web_receiver/cast.framework.messages.RequestData#mediaSessionId)\n\nrequestId\n\nnumber\n\nId of the request, used to correlate request/response.\n\nInherited from\n: [cast.framework.messages.RequestData#requestId](/cast/docs/reference/web_receiver/cast.framework.messages.RequestData#requestId)\n\nsequenceNumber\n\n(number or undefined)\n\nA number to synchronize all queue commands.\nIf provided for a queue command, the SDK will verify the queue latest\nsequence number match the request.\nCurrent sequenceNumber is provided as part of outgoing queue changed\nmessages.\n\nInherited from\n: [cast.framework.messages.RequestData#sequenceNumber](/cast/docs/reference/web_receiver/cast.framework.messages.RequestData#sequenceNumber)"]]