Share via


Windows Media Player 11 SDK DURATION Element 

Windows Media Player SDK banner art

Previous Next

DURATION Element

The DURATION element defines the length of time Windows Media Player will render the associated playlist entry.

Syntax

  <DURATION
   VALUE = "hh:mm:ss.fract"
/>

Attributes

VALUE (required)

The length of time, in hours, minutes, seconds, and hundredths of a second, that an entry is rendered by Windows Media Player. The default value is the entire length of the entry. If the entry is a graphic file, a duration value must be specified.

Parent/Child Elements

Hierarchy Elements
Parent elements ENTRY, REF
Child elements None

Remarks

This element defines the length of time a stream is to be rendered. If the VALUE attribute exceeds the length of the content stream, the stream terminates at its normal end-point.

This element can appear either within a REF element or within an ENTRY element. However, a DURATION element defined within a REF element overrides one that appears within the REF element's parent ENTRY element.

The DURATION element overrides a PREVIEWDURATION element.

Example Code

<DURATION VALUE="00:00:30" />   <!-- 30 seconds -->
<DURATION VALUE="1:01.5" />     <!-- 61.5 seconds -->

Requirements

Windows Media Player version 7.0 or later.

See Also

Previous Next