نمایه آیتم در آرایه آیتم ها که باید اولین currentItem باشد (آیتمی که ابتدا پخش می شود). توجه داشته باشید که این شاخص آرایه است (از 0 شروع می شود) و نه itemId (زیرا تا زمانی که صف ایجاد نشود مشخص نیست). اگر repeatMode chrome.cast.media.RepeatMode.OFF باشد، پخش با پخش آخرین مورد در آرایه به پایان می رسد (عناصر قبل از startIndex پخش نمی شوند). این ممکن است برای ادامه سناریوهایی مفید باشد که کاربر قبلاً از برنامه فرستنده استفاده میکرده و در وسط تصمیم به ارسال محتوا میگیرد. به این ترتیب برنامه فرستنده نیازی به نقشه برداری بین موقعیت های صف محلی و راه دور ندارد یا یک درخواست اضافی برای به روز رسانی صف ذخیره می کند.
تاریخ آخرین بهروزرسانی 2024-10-30 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2024-10-30 بهوقت ساعت هماهنگ جهانی."],[[["`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"]]