duration

external var duration: Double(source)

The duration property of the MediaSource interface gets and sets the duration of the current media being presented.

MDN Reference