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.

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.