Duration

This property contains 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.

ActiveMovie compatibility mode is only supported through Windows CE .NET 4.1.

Requirements

OS Versions: Windows CE 3.0 and later.

See Also

Windows Media Player Properties | Compatibility Modes | Retrieving Presentation Information | Using Playlists | IsDurationValid

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.