Algoritma untuk pemilihan item berikutnya saat item saat ini telah
berakhir.
Nilai default
chrome.cast.media.RepeatMode.OFF
startIndex
angka
Indeks item dalam array item yang harus menjadi currentItem pertama (item yang akan diputar terlebih dahulu). Perhatikan bahwa ini adalah indeks array (dimulai dari 0) dan bukan itemId (karena tidak diketahui sampai antrean dibuat). Jika repeatMode adalah chrome.cast.media.RepeatMode.OFF, pemutaran akan berakhir saat item terakhir dalam array diputar (elemen sebelum startIndex tidak akan diputar). Cara ini mungkin berguna untuk skenario lanjutan ketika pengguna sudah menggunakan aplikasi pengirim dan di tengah-tengah memutuskan untuk melakukan transmisi. Dengan cara ini, aplikasi pengirim tidak perlu memetakan antara posisi antrean lokal dan jarak jauh atau menyimpan satu permintaan tambahan untuk memperbarui antrean.
[[["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 2023-12-02 UTC."],[[["`QueueLoadRequest` is used to load and potentially start playing a new, ordered list of media items on a Cast receiver."],["It requires an array of `QueueItem` objects, specifying the media to be loaded and played."],["Options for playback behavior include `customData`, `repeatMode`, and `startIndex` for controlling how the queue is handled."],["`repeatMode` determines how the queue behaves after the last item is played (e.g., repeating the queue, repeating a single item, or stopping)."],["`startIndex` allows you to specify which item in the queue should be played first, useful for resuming playback from a specific point."]]],["The `QueueLoadRequest` class manages loading and playing an ordered list of media items. It requires a non-empty array of `QueueItem` objects. Key properties include `items` (the media list), `repeatMode` (playback behavior after an item ends), `startIndex` (specifying the first item to play by its index), and `customData` (for receiver app customization). `startIndex` defaults to 0, and `repeatMode` defaults to OFF. The provided array is sorted by index.\n"]]