Los elementos de la cola asociados a la cola. Esto se puede omitir para una cola en la nube o una cola implementada por el receptor.
Los socios pueden omitir el parámetro items si implementan una cola en la nube, lo que implica proporcionar elementos de forma dinámica cuando el receptor lo solicite. Este enfoque es contrario al enfoque en el que todos los elementos de la cola se proporcionan al comienzo de una sesión multimedia. Consulta https://developers.google.com/cast/docs/web_receiver/queueing para ver ejemplos de colas regulares y colas en la nube.
El valor no debe ser nulo.
startIndex
Opcional
número
El índice del elemento en la cola que se debería usar para iniciar la reproducción primero.
startTime
Opcional
número
Cantidad de segundos (desde el comienzo del contenido) para iniciar la reproducción del primer elemento.
[null,null,["Última actualización: 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."]]