Mewakili jeda (misalnya jeda iklan) yang disertakan dalam video utama.
Konstruktor
Istirahat
new
Break(id, breakClipIds, position)
Parameter
id
string
ID unik jeda iklan.
breakClipIds
Array string
Daftar ID klip jeda iklan yang disertakan dalam
jeda ini.
Nilai tidak boleh nol.
position
angka
Posisi jeda ini di dalam video utama.
Properti
breakClipIds
Array non-null dari string
Daftar ID klip jeda iklan yang disertakan dalam jeda ini.
tonton
(angka atau tidak ditentukan)
Durasi istirahat dalam detik.
id
string
ID unik jeda iklan.
isEmbedded
(boolean atau tidak ditentukan)
Menunjukkan apakah jeda disematkan dalam streaming utama.
isWatched
boolean
Apakah istirahat ditonton atau tidak. Hal ini ditandai sebagai benar (true) saat jeda mulai
diputar. Pengirim dapat mengubah warna penanda status progres yang sesuai dengan jeda ini setelah kolom ini berubah dari false menjadi true, yang menunjukkan bahwa pengguna akhir sudah melihat jeda ini.
position
angka
Lokasi jeda dalam video utama. -1 merepresentasikan akhir video utama dalam hitungan detik.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 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,[]]