次の方法で共有


Duration (Windows Media Player) (Windows Embedded CE 6.0)

1/6/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 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

Windows Embedded CE Windows CE 3.0 and later

See Also

Reference

Windows Media Player Properties
IsDurationValid

Concepts

Compatibility Modes
Retrieving Presentation Information
Using Playlists