Page Summary
-
chrome.cast.media.Break represents a break like an ad break within the main video content.
-
A Break object is constructed with an ID, a list of break clip IDs, and its position in the video.
-
Key properties of a Break include its ID, a list of included break clip IDs, duration, whether it's embedded, whether it has been watched, and its position within the main video.
chrome.cast.media. Break
Represents a break (e.g. ad break) included in the main video.
Constructor
Break
new Break(id, breakClipIds, position)
Parameter |
|
|---|---|
|
id |
string Unique ID of a break. |
|
breakClipIds |
Array of string List of break clip IDs included in this break. Value must not be null. |
|
position |
number Position of this break inside the main video. |
Properties
breakClipIds
non-null Array of string
List of break clip IDs included in this break.
duration
(number or undefined)
Duration of break in seconds.
id
string
Unique ID of a break.
isEmbedded
(boolean or undefined)
Indicates whether the break is embedded in the main stream.
isWatched
boolean
Whether a break was watched. This is marked as true when the break begins to play. A sender can change color of a progress bar marker corresponding to this break once this field changes from false to true denoting that the end-user already watched this break.
position
number
Location of the break inside the main video. -1 represents the end of the main video in seconds.