Windows Media Player Control SDK Banner Art
*Contents *Index  *Topic Contents
*Previous Topic: REF
*Next Topic: STARTMARKER

REPEAT Element

Defines the number of times the Microsoft® Windows Media™ Player control repeats one or more ENTRY or ENTRYREF elements.

Syntax

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

Attributes

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

Parent/Child Information

Parent elements ASX
Child elements ENTRY, ENTRYREF

Remarks

This element defines the number of times the 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 an Advanced Stream Redirector (ASX) file 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 the Windows Media Player to ignore the REPEAT element and play the content once.

Example

<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>

Top of Page Top of Page
© 1999 Microsoft and/or its suppliers. All rights reserved. Terms of Use.