Die mit der Warteschlange verknüpften Elemente in der Warteschlange. Bei einer Cloud-Warteschlange oder einer vom Empfänger implementierten Warteschlange kann dieser Wert weggelassen werden.
Partner können den Parameter items weglassen, wenn sie eine Cloud-Warteschlange implementieren. Dies beinhaltet die dynamische Bereitstellung von Elementen auf Anfrage vom Empfänger. Dies steht im Gegensatz zu dem Ansatz, bei dem alle Warteschlangenelemente zu Beginn einer Mediensitzung bereitgestellt werden. Beispiele für reguläre Warteschlangen und Cloud-Warteschlangen finden Sie unter https://developers.google.com/cast/docs/web_receiver/queueing.
Der Wert darf nicht null sein.
startIndex
Optional
Zahl
Der Index des Elements in der Warteschlange, mit dem die Wiedergabe zuerst gestartet werden soll.
startTime
Optional
Zahl
Gibt an, wie viele Sekunden (seit Beginn des Inhalts) die Wiedergabe des ersten Inhalts gestartet werden soll.
[null,null,["Zuletzt aktualisiert: 2025-07-25 (UTC)."],[[["\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."]]