Export (0) Print
Expand All
id
src
Expand Minimize

duration property

Gets or sets the duration in seconds for the media.

Important  This property is not supported in Internet Explorer 11 on Windows 7.

This property is read/write.

IE11

 

Syntax

JavaScript
object.duration = seconds
seconds = object.duration

 

Property values

Type: double

The duration of the media in seconds.

Exceptions

ExceptionCondition
INVALID_ACCESS_ERR
  • If the duration is set to a negative or NaN.
INVALID_STATE_ERR

 

Remarks

The default value of duration is NaN.

See also

MediaSource

 

 

Show:
© 2015 Microsoft