duration

abstract val duration: Double

The duration of the active source in seconds if it's a VoD or Double.POSITIVE_INFINITY if it's a live stream. If isAd is true the duration of the current ad is returned.

Defaults to -1.0 if the duration is not available or not known (yet).