Biểu thị trạng thái hiện tại của điểm chèn quảng cáo.
Hàm dựng
BreakStatus
mới
BreakStatus()
Thuộc tính
breakClipId
(chuỗi hoặc không xác định)
Mã của đoạn ngắt hiện tại.
breakId
(chuỗi hoặc không xác định)
Mã của điểm chèn hiện tại.
currentBreakClipTime
(số hoặc không xác định)
Thời gian tính bằng giây đã trôi qua sau khi đoạn video của điểm chèn hiện tại bắt đầu.
Thành phần này chỉ được cập nhật không thường xuyên, nên giá trị của thành phần này thường lỗi thời. Sử dụng phương thức getEstimatedBreakClipTime để nhận thông tin ước tính về vị trí phát thực tế dựa trên thông tin mới nhất mà trình nhận báo cáo.
currentBreakTime
(số hoặc không xác định)
Thời gian tính bằng giây đã trôi qua sau khi bắt đầu điểm chèn quảng cáo hiện tại.
Thành phần này chỉ được cập nhật không thường xuyên, nên giá trị của thành phần này thường lỗi thời. Sử dụng phương thức getEstimatedBreakTime để nhận thông tin ước tính về vị trí phát thực tế dựa trên thông tin mới nhất mà trình nhận báo cáo.
whenSkippable
(số hoặc không xác định)
Thời lượng tính bằng giây khi đoạn ngắt này có thể bỏ qua. 5 có nghĩa là người dùng cuối có thể bỏ qua đoạn chèn quảng cáo này sau 5 giây. Nếu bạn không xác định trường này, điều đó có nghĩa là đoạn video của điểm chèn hiện tại không thể bỏ qua.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-25 UTC."],[[["\u003cp\u003e\u003ccode\u003eBreakStatus\u003c/code\u003e class represents the current status of a media break during a Cast session.\u003c/p\u003e\n"],["\u003cp\u003eIt provides information about the break and break clip IDs, elapsed time, and when the break is skippable.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ecurrentBreakClipTime\u003c/code\u003e and \u003ccode\u003ecurrentBreakTime\u003c/code\u003e values are updated sporadically and often outdated, thus \u003ccode\u003egetEstimatedBreakClipTime\u003c/code\u003e and \u003ccode\u003egetEstimatedBreakTime\u003c/code\u003e are recommended for accurate playback position.\u003c/p\u003e\n"]]],["The `BreakStatus` class represents the current status of a break in media playback. It contains the `breakClipId` and `breakId`, identifying the current clip and break. `currentBreakClipTime` and `currentBreakTime` track elapsed time in seconds, but are updated sporadically. To get accurate timings, `getEstimatedBreakClipTime` and `getEstimatedBreakTime` should be used instead. `whenSkippable` indicates the time in seconds when the current break clip becomes skippable, if applicable.\n"],null,["# Class: BreakStatus\n\nchrome.[cast](/cast/docs/reference/web_sender/chrome.cast).[media](/cast/docs/reference/web_sender/chrome.cast.media).BreakStatus\n=================================================================================================================================\n\nclass static\n\nRepresents current status of break.\n\nConstructor\n-----------\n\n### BreakStatus\n\nnew\nBreakStatus()\n\nProperties\n----------\n\n### breakClipId\n\n(string or undefined)\n\nID of the current break clip.\n\n### breakId\n\n(string or undefined)\n\nID of the current break.\n\n### currentBreakClipTime\n\n(number or undefined)\n\nTime in seconds elapsed after the current break clip starts.\nThis member is only updated sporadically, so its value is often out of\ndate. Use the `getEstimatedBreakClipTime` method to get an estimate of\nthe real playback position based on the last information reported by the\nreceiver.\n\n### currentBreakTime\n\n(number or undefined)\n\nTime in seconds elapsed after the current break starts.\nThis member is only updated sporadically, so its value is often out of\ndate. Use the `getEstimatedBreakTime` method to get an estimate of the\nreal playback position based on the last information reported by the\nreceiver.\n\n### whenSkippable\n\n(number or undefined)\n\nThe time in seconds when this break clip becomes skippable. 5 means that\nthe end user can skip this break clip after 5 seconds. If this field is\nnot defined, it means that the current break clip is not skippable."]]