Cung cấp phạm vi có thể tìm kiếm trực tiếp với thời gian bắt đầu và kết thúc tính bằng giây.
Hàm dựng
LiveSeekableRange
mới
LiveSeekableRange(bắt đầu, kết thúc, isTransitionWindow, isLiveDone)
Thông số
bắt đầu
Không bắt buộc
number
end
Không bắt buộc
number
isMovingWindow
Không bắt buộc
boolean
isLiveDone
Không bắt buộc
boolean
Thuộc tính
isLiveDone
(Boolean hoặc không xác định)
true cho biết sự kiện phát trực tiếp đã kết thúc.
Nếu việc này xảy ra, thì phạm vi có thể tìm kiếm trực tiếp sẽ ngừng cập nhật.
isMovingWindow
(Boolean hoặc không xác định)
Giá trị boolean cho biết liệu phạm vi có thể tìm kiếm trực tiếp có phải là một cửa sổ di chuyển hay không. Nếu là false, phạm vi có thể tìm kiếm trực tiếp là một phạm vi mở rộng hoặc một phạm vi cố định, cho biết sự kiện phát trực tiếp đã kết thúc.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-25 UTC."],[[["\u003cp\u003e\u003ccode\u003eLiveSeekableRange\u003c/code\u003e provides the seekable range of a live stream with start and end times in seconds.\u003c/p\u003e\n"],["\u003cp\u003eIt indicates whether the live stream has ended (\u003ccode\u003eisLiveDone\u003c/code\u003e) and if the seekable range is a moving window (\u003ccode\u003eisMovingWindow\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eThe constructor allows setting the start, end, \u003ccode\u003eisMovingWindow\u003c/code\u003e, and \u003ccode\u003eisLiveDone\u003c/code\u003e properties.\u003c/p\u003e\n"]]],[],null,["# Class: LiveSeekableRange\n\ncast.[framework](/cast/docs/reference/web_receiver/cast.framework).[messages](/cast/docs/reference/web_receiver/cast.framework.messages).LiveSeekableRange\n==========================================================================================================================================================\n\nclass static\n\nProvides the live seekable range with start and end time in seconds.\n\nConstructor\n-----------\n\n### LiveSeekableRange\n\nnew\nLiveSeekableRange(start, end, isMovingWindow, isLiveDone)\n\n| #### Parameter ||\n|----------------|------------------|\n| start | Optional number |\n| end | Optional number |\n| isMovingWindow | Optional boolean |\n| isLiveDone | Optional boolean |\n\nProperties\n----------\n\n### isLiveDone\n\n(boolean or undefined)\n\n`true` indicates that a live stream has ended.\n\nIf it is done, the live seekable range should stop updating.\n\n### isMovingWindow\n\n(boolean or undefined)\n\nA boolean value indicates whether the live seekable range is a moving\nwindow. If `false`, the live seekable range is either an expanding range\nor a fixed range, indicating that a live stream has ended."]]