duration

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

MDN Reference