Duration

Retrieves a value indicating the clip's playing time in seconds.

Compatibility: Windows Media Player, ActiveMovie

[ dblDuration = ] MediaPlayer.Duration

Parameters

  • dblDuration
    Double value indicating the clip's playing time in seconds. This property is read-only with no default value.

Remarks

The IsDurationValid property specifies whether the Duration property returns a valid value. If the FileName property is not set, the Duration property returns zero.

See Also

IsDurationValid, Using Playlists, Retrieving Presentation Information

 Last updated on Tuesday, July 13, 2004

© 1992-2000 Microsoft Corporation. All rights reserved.