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.
A version of this page is also available for
4/8/2010

This property contains the clip's playing time in seconds. This property is read-only.

Compatibility:Windows Media Player, ActiveMovie

Syntax

[ 
dblDuration = ] MediaPlayer.Duration

Parameters

dblDuration

Double value indicating the clip's playing time in seconds. There is no default value.

Remarks

The IsDurationValidproperty specifies whether the Durationproperty returns a valid value.

If the FileNameproperty is not set, the Durationproperty returns zero.

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

Requirements

Windows Embedded CE Windows CE 3.0 and later

See Also