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. Defaults to -1.0 if the duration is not available or not known (yet).