Windows Media Player SDK banner art
PreviousNext

Media.duration

The duration property retrieves the duration of the current media item in seconds.

Syntax

player.currentMedia.duration

Possible Values

This property is a read-only Number (double).

Remarks

If this property is used with a media item other than the one specified in Player.currentMedia, it will not contain a valid value.

See Also

PreviousNext


© 2000-2001 Microsoft Corporation. All rights reserved.