Bagikan melalui


REPEAT Element

[The feature associated with this page, Windows Media Player SDK, is a legacy feature. It has been superseded by MediaPlayer. MediaPlayer has been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer instead of Windows Media Player SDK, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

The REPEAT element defines the number of times Windows Media Player repeats one or more ENTRY or ENTRYREF elements.

<REPEAT   
   COUNT = "integer"
>
</REPEAT>

Attributes

COUNT

Integer representing the number of times Windows Media Player repeats the ENTRY and ENTRYREF elements within this element's scope.

Parent/Child Elements

Hierarchy Elements
Parent elements ASX
Child elements ENTRY, ENTRYREF

Remarks

This element defines the number of times Windows Media Player repeats, or loops through, the clips defined by the ENTRY and ENTRYREF elements within this element's scope. Only the first REPEAT element in a metafile is valid; subsequent REPEAT elements are ignored.

If no COUNT attribute is defined, the content in the associated ENTRY and ENTRYREF elements repeats an infinite number of times. A value of zero causes Windows Media Player to ignore the REPEAT element and play the content once.

Examples

<ASX VERSION="3.0">
   <ENTRY>
        <REF HREF="mms://example.microsoft.com/clip1.asf" />
<!-- This clip plays once. -->
   </ENTRY>

   <REPEAT COUNT="2">
      <ENTRY>
     <REF HREF="mms://example.microsoft.com/clip2.asf" />
     <REF HREF="mms://example.microsoft.com/clip3.asf" />
 <!-- These clips play twice. -->
      </ENTRY>
   </REPEAT>
</ASX>

Requirements

Requirement Value
Version
Windows Media Player version 70 or later

See also

Windows Media Metafile Elements Reference

Windows Media Metafile Reference