Windows Media Player Control SDK Banner Art
*Contents *Index  *Topic Contents
*Previous Topic: DisplaySize
*Next Topic: DVD

Duration Property

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

Syntax

[ dblDuration = ] MediaPlayer.Duration

Possible Values

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


Top of Page Top of Page
© 1999 Microsoft and/or its suppliers. All rights reserved. Terms of Use.