Microsoft Windows CE 3.0  

Duration

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

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 IsDurationValidproperty specifies whether the Durationproperty returns a valid value. If the FileNameproperty is not set, the Durationproperty returns zero.

See Also

IsDurationValid, Using Playlists, Retrieving Presentation Information