מייצג הפסקה (למשל הפסקה למודעה) הכלולה בסרטון הראשי.
יצרן
הפסקה
new
Break(id, breakClipIds, position)
פרמטר
id
מחרוזת
המזהה הייחודי של ההפסקה.
breakClipIds
מערך של מחרוזת
רשימת מזהים של קליפים של ההפסקה נכללים
בהפסקה הזו.
הערך לא יכול להיות ריק.
position
מספר
מיקום ההפסקה בתוך הסרטון הראשי.
תכונות
breakClipIds
מערך של מחרוזת שאינו Null
רשימת המזהים של קטעי ההפסקה הכלולים בהפסקה הזו.
משך
(מספר או לא מוגדר)
משך ההפסקה בשניות.
id
מחרוזת
המזהה הייחודי של ההפסקה.
isEmbedded
(בוליאני או לא מוגדר)
מציין אם ההפסקה מוטמעת בשידור הראשי.
isWatched
boolean
מציין אם נצפה בהפסקה. הערך הזה מסומן כ-True כשההפסקה מתחילה לפעול. שולח יכול לשנות את צבע הסמן של סרגל ההתקדמות המתאים להפסקה הזו לאחר שהשדה ישתנה מ-false ל-true, כדי לציין
שמשתמש הקצה כבר צפה בהפסקה הזו.
position
מספר
מיקום ההפסקה בסרטון הראשי. -1 מייצג את סוף הסרטון הראשי בשניות.
[[["התוכן קל להבנה","easyToUnderstand","thumb-up"],["התוכן עזר לי לפתור בעיה","solvedMyProblem","thumb-up"],["סיבה אחרת","otherUp","thumb-up"]],[["חסרים לי מידע או פרטים","missingTheInformationINeed","thumb-down"],["התוכן מורכב מדי או עם יותר מדי שלבים","tooComplicatedTooManySteps","thumb-down"],["התוכן לא עדכני","outOfDate","thumb-down"],["בעיה בתרגום","translationIssue","thumb-down"],["בעיה בדוגמאות/בקוד","samplesCodeIssue","thumb-down"],["סיבה אחרת","otherDown","thumb-down"]],["עדכון אחרון: 2023-12-02 (שעון UTC)."],[[["The `chrome.cast.media.Break` class represents an ad break or similar interruption within a main video stream."],["Breaks are identified by a unique ID and contain a list of break clip IDs, along with their position in the main video."],["Key properties of a Break include its duration, whether it's embedded within the stream, and if it has been watched by the user."],["Developers can use the `Break` object to manage and track breaks within their Cast-enabled applications."]]],["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"]]