Skip to main content

Class: LiveSeekableRange

  • Provides the live seekable range with start and end time in seconds.

  • The constructor takes optional parameters for the start and end times, as well as booleans for isMovingWindow and isLiveDone.

  • The end and start properties provide the seekable range in seconds, but are updated sporadically.

  • The isLiveDone property indicates if a live stream has ended.

  • The isMovingWindow property indicates if the live seekable range is a moving window.

chrome.cast.media.LiveSeekableRange

class static

Provides the live seekable range with start and end time in seconds.

Constructor

LiveSeekableRange

new LiveSeekableRange(start, end, isMovingWindow, isLiveDone)

Parameter

start

Optional

number

end

Optional

number

isMovingWindow

Optional

boolean

isLiveDone

Optional

boolean

Properties

end

(number or undefined)

End of the seekable range in seconds. This member is only updated sporadically, so its value is often out of date. Use the getEstimatedLiveSeekableRange method to get an estimate of the real position based on the last information reported by the receiver.

isLiveDone

(boolean or undefined)

A boolean value indicates whether a live stream is ended. If it is done, the end of live seekable range should stop updating.

isMovingWindow

(boolean or undefined)

A boolean value indicates whether the live seekable range is a moving window. If false, it will be either a expanding range or a fixed range meaning live has ended.

start

(number or undefined)

Start of the seekable range in seconds. This member is only updated sporadically, so its value is often out of date. Use the getEstimatedLiveSeekableRange method to get an estimate of the real position based on the last information reported by the receiver.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2024年09月18日 UTC.

AltStyle によって変換されたページ (->オリジナル) /