Class: LiveSeekableRange

  • LiveSeekableRange provides the seekable range of a live stream with start and end times in seconds.

  • It includes properties such as start, end, isMovingWindow, and isLiveDone to indicate the range and status of the live stream.

  • The start and end properties are only updated sporadically and might be outdated, so the getEstimatedLiveSeekableRange method is recommended for a more accurate estimate.

  • isMovingWindow indicates if the seekable range is a moving window or fixed, and isLiveDone signals whether the live stream has ended.

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.