Export (0) Print
Expand All


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

    VALUE = "hh:mm:ss.fract"


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 elementsENTRY, REF
Child elementsNone



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.


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



Windows Media Player version 7.0 or later

See also

Windows Media Metafile Elements Reference
Windows Media Metafile Reference



Community Additions

© 2015 Microsoft