Representa una pausa (p.ej., una pausa publicitaria) incluida en el video principal.
Constructor
Receso
new
Break(id, breakClipIds, position)
Parámetro
id
cadena
Es el ID único de una pausa.
breakClipIds
Array de cadenas
Es la lista de IDs de clips de pausa incluidos en
esta pausa.
El valor no debe ser nulo.
position
número
Posición de esta pausa dentro del video principal.
Propiedades
breakClipIds
no nulo Array de cadena
Lista de ID de clips de pausa incluidos en esta pausa.
de vistas
(número o no definido)
Duración de la pausa en segundos.
id
cadena
Es el ID único de una pausa.
isEmbedded
(booleano o no definido)
Indica si la pausa está incorporada en la transmisión principal.
isWatched
boolean
Indica si se miró un descanso. Esto se marca como verdadero cuando comienza a reproducirse la pausa. Un remitente puede cambiar el color de un marcador de la barra de progreso correspondiente a esta pausa una vez que este campo cambie de falso a verdadero, lo que indica que el usuario final ya vio esta pausa.
position
número
Ubicación de la pausa dentro del video principal. -1 representa el final del video principal en segundos.
[null,null,["Última actualización: 2025-07-25 (UTC)"],[[["\u003cp\u003eThe \u003ccode\u003echrome.cast.media.Break\u003c/code\u003e class represents an ad break or similar interruption within a main video stream.\u003c/p\u003e\n"],["\u003cp\u003eBreaks are identified by a unique ID and contain a list of break clip IDs, along with their position in the main video.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of a Break include its duration, whether it's embedded within the stream, and if it has been watched by the user.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can use the \u003ccode\u003eBreak\u003c/code\u003e object to manage and track breaks within their Cast-enabled applications.\u003c/p\u003e\n"]]],["The `Break` class represents a video break, such as an ad break, within a main video. It requires an `id`, a list of `breakClipIds`, and a `position`. Key properties include `breakClipIds` (list of clip IDs), `duration` (break length), `id` (unique identifier), `isEmbedded` (embedded status), `isWatched` (watched status, toggled when playback starts), and `position` (location within the video, -1 for the end). The constructor `Break` is used to instantiate breaks, given the id, breakClipIds, and position.\n"],null,["# Class: Break\n\nchrome.[cast](/cast/docs/reference/web_sender/chrome.cast).[media](/cast/docs/reference/web_sender/chrome.cast.media).Break\n===========================================================================================================================\n\nclass static\n\nRepresents a break (e.g. ad break) included in the main video.\n\nConstructor\n-----------\n\n### Break\n\nnew\nBreak(id, breakClipIds, position)\n\n| #### Parameter ||\n|--------------|----------------------------------------------------------------------------------------|\n| id | string Unique ID of a break. |\n| breakClipIds | Array of string List of break clip IDs included in this break. Value must not be null. |\n| position | number Position of this break inside the main video. |\n\nProperties\n----------\n\n### breakClipIds\n\nnon-null Array of string\n\nList of break clip IDs included in this break.\n\n### duration\n\n(number or undefined)\n\nDuration of break in seconds.\n\n### id\n\nstring\n\nUnique ID of a break.\n\n### isEmbedded\n\n(boolean or undefined)\n\nIndicates whether the break is embedded in the main stream.\n\n### isWatched\n\nboolean\n\nWhether a break was watched. This is marked as true when the break begins\nto play. A sender can change color of a progress bar marker corresponding\nto this break once this field changes from false to true denoting that\nthe end-user already watched this break.\n\n### position\n\nnumber\n\nLocation of the break inside the main video. -1 represents the end of the\nmain video in seconds."]]