آیتم های صف مرتبط با صف. این ممکن است برای یک صف ابر یا یک صف اجرا شده توسط گیرنده حذف شود. شرکا می توانند پارامتر items را در صورت پیاده سازی یک صف ابری که مستلزم ارائه اقلام به صورت پویا در صورت درخواست از گیرنده است حذف کنند. این برخلاف رویکردی است که در آن تمام موارد صف در ابتدای جلسه رسانه ارائه می شود. برای نمونههایی از صفهای معمولی و صفهای ابری، به https://developers.google.com/cast/docs/web_receiver/queueing مراجعه کنید.
مقدار نباید صفر باشد.
startIdex
اختیاری
عدد
نمایه مورد در صف که باید برای شروع پخش اول استفاده شود.
زمان شروع
اختیاری
عدد
تعداد ثانیه (از ابتدای محتوا) برای شروع پخش اولین مورد.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003e\u003ccode\u003eQueueData\u003c/code\u003e is a class used to define the structure and properties of a media queue for the Google Cast framework.\u003c/p\u003e\n"],["\u003cp\u003eIt includes details like queue ID, name, description, repeat mode, items within the queue, and starting playback position.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eQueueData\u003c/code\u003e allows for regular queues (providing all items upfront) and cloud queues (dynamically providing items).\u003c/p\u003e\n"],["\u003cp\u003eKey properties of \u003ccode\u003eQueueData\u003c/code\u003e encompass \u003ccode\u003econtainerMetadata\u003c/code\u003e, \u003ccode\u003eitems\u003c/code\u003e, \u003ccode\u003erepeatMode\u003c/code\u003e, \u003ccode\u003estartIndex\u003c/code\u003e, and \u003ccode\u003estartTime\u003c/code\u003e, enabling detailed queue management.\u003c/p\u003e\n"],["\u003cp\u003eThis class is essential for handling media playback order, queue behavior, and metadata for a seamless Cast experience.\u003c/p\u003e\n"]]],[],null,["# Class: QueueData\n\ncast.[framework](/cast/docs/reference/web_receiver/cast.framework).[messages](/cast/docs/reference/web_receiver/cast.framework.messages).QueueData\n==================================================================================================================================================\n\nclass static\n\nQueue data as part of the LOAD request.\n\nConstructor\n-----------\n\n### QueueData\n\nnew\nQueueData(id, name, description, repeatMode, items, startIndex, startTime)\n\n| #### Parameter ||\n|-------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| id | Optional string The ID of the queue. |\n| name | Optional string The name of the queue. |\n| description | Optional string The description of the queue. |\n| repeatMode | Optional [cast.framework.messages.RepeatMode](/cast/docs/reference/web_receiver/cast.framework.messages#.RepeatMode) How to repeat the queue. Value must not be null. |\n| items | Optional Array of non-null [cast.framework.messages.QueueItem](/cast/docs/reference/web_receiver/cast.framework.messages.QueueItem) The queue items associated with the queue. This may be omitted for a cloud queue or a receiver-implemented queue. Partners can omit the `items` parameter if they implement a cloud queue, which entails dynamically providing items upon request from the receiver. This is opposed to the approach where all the queue items are provided at the beginning of a media session. See https://developers.google.com/cast/docs/web_receiver/queueing for examples of regular queues and cloud queues. Value must not be null. |\n| startIndex | Optional number The index of the item in the queue that should be used to start playback first. |\n| startTime | Optional number The number of seconds (since the beginning of content) to start playback of the first item. |\n\nProperties\n----------\n\n### containerMetadata\n\n(non-null [cast.framework.messages.ContainerMetadata](/cast/docs/reference/web_receiver/cast.framework.messages.ContainerMetadata) or undefined)\n\nMetadata to describe the queue content, and optionally media sections.\n\n### description\n\n(string or undefined)\n\nThe description of the queue.\n\n### entity\n\n(string or undefined)\n\nAn optional Queue entity ID, providing a Google Assistant deep link.\n\n### id\n\n(string or undefined)\n\nThe ID of the queue.\n\n### items\n\n(non-null Array of non-null [cast.framework.messages.QueueItem](/cast/docs/reference/web_receiver/cast.framework.messages.QueueItem) or undefined)\n\nAn `Array` of queue items, sorted in playback order.\n\n### name\n\n(string or undefined)\n\nThe name of the queue.\n\n### queueType\n\n(non-null [cast.framework.messages.QueueType](/cast/docs/reference/web_receiver/cast.framework.messages#.QueueType) or undefined)\n\nA queue type, such as album, playlist, radio station, or tv series.\n\n### repeatMode\n\n(non-null [cast.framework.messages.RepeatMode](/cast/docs/reference/web_receiver/cast.framework.messages#.RepeatMode) or undefined)\n\nThe continuous playback behavior of the queue.\n\n### shuffle\n\n(boolean or undefined)\n\n`true` indicates that the queue is shuffled.\n\n### startIndex\n\n(number or undefined)\n\nThe index of the item in the queue that should be used to start playback\nfirst.\n\n### startTime\n\n(number or undefined)\n\nWhen to start playback of the first item, expressed as the number of\nseconds since the beginning of the media."]]