Contents

duration

The length of the media resource in seconds. (read-only)

Declaration

readonly attribute unrestricted double duration;

Discussion

This property is 0 if there is no media data available. This property is NaN if the duration is unknown. The value is positive infinity if the duration is known but is indefinite—for example, a live stream.

See Also

Getting State