Thuật toán để chọn mục tiếp theo khi mục hiện tại đã kết thúc.
Giá trị mặc định
chrome.cast.media.RepeatMode.OFF
startIndex
number
Chỉ mục của mục trong mảng items phải là currentItem đầu tiên (mục sẽ được phát đầu tiên). Lưu ý rằng đây là chỉ mục của mảng (bắt đầu từ 0) chứ không phải là itemId (vì hệ thống sẽ không biết đến khi tạo hàng đợi). Nếu repeatMode là chrome.cast.media.RepeatMode.OFF thì quá trình phát sẽ kết thúc khi mục cuối cùng trong mảng được phát (các phần tử trước startIndex sẽ không được phát). Điều này có thể hữu ích cho các trường hợp tiếp tục mà trong đó người dùng đã sử dụng ứng dụng của người gửi và quyết định truyền ở giữa. Bằng cách này, ứng dụng của người gửi không cần liên kết giữa vị trí hàng đợi cục bộ và hàng đợi từ xa hay lưu thêm một yêu cầu để cập nhật hàng đợi.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 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"]]