repeatCount
Previous | Next |
repeatCount
The repeatCount attribute specifies the number of times that an element is repeated.
Syntax
repeatCount = Numeric-value | "indefinite"
Remarks
The WMS SMIL Playlist Parser plug-in enforces case sensitivity on the repeatCount attribute.
This attribute must be one of the following values.
Value | Description |
numeric value | A numeric value that specifies how many times the element repeats. All fractions are rounded up. For example, 2.1 is rounded up to 3. |
indefinite | The element repeats indefinitely, subject to the constraints of the parent time container. |
The repeatCount element can be used to repeat a single media element or an entire time container.
Example Code
In the following example, assume that Audio.wma has a 5-second simple duration. It is repeated twice, and the total active duration is 10 seconds.
<?wsx version="1.0"?> <smil> <media src="c:\wmpub\wmroot\Audio.wma" repeatCount="2" /> </smil>
In the next example, Audio.wma is played three times before being stopped by the dur attribute of the smil element.
<?wsx version="1.0"?> <smil dur="15s"> <media src=" c:\wmpub\wmroot\Audio.wma " repeatCount="1000" /> </smil>
In the next example, Audio.wmv is repeated four times. If the value you specify for the repeatCount attribute is not an integer, it is rounded up.
<?wsx version="1.0"?> <smil> <media src=" c:\wmpub\wmroot\Audio.wma " repeatCount="3.1" /> </smil>
You can also use the repeatCount attribute to repeat an entire time container. In the following example, the playlist is repeated three times and the total duration is 3*(10+20+30)=180 seconds.
<?wsx version="1.0"?> <smil repeatCount="3"> <media src=" c:\wmpub\wmroot\Audio_1.wma " dur="10s" /> <media src=" c:\wmpub\wmroot\Audio_2.wma " dur="20s" /> <media src=" c:\wmpub\wmroot\Audio_3.wma " dur="30s" /> </smil>
See Also
Previous | Next |