From http://www.w3schools.com (Copyright Refsnes Data)
| « Previous | Next Chapter » |
Objects inside a par element will be played at the same time (in parallel).
The par element can have a number of attributes. The most common attributes are:
| Attribute | Value | Description |
|---|---|---|
| begin | time | Sets the delay before the element is displayed |
| dur | time | Sets the duration for the display |
| endsync | "first"|"last"|id(clip) | Synchronizes the stopping of elements |
| repeatCount | number | Sets the number of repetitions for the display |
For a full list of SMIL elements and attributes: W3Schools SMIL Reference.
A parallel group of clips can be stopped at the same time using the endsync attribute in the <par> tag.
endsync="first" stops all the clips in the <par> group when the shortest clip are finished regardless of any time parameters set for the other clips.
endsync="last" concludes the <par> group when all clips have finished playing. This is the default.
endsync="id(ID)" concludes the <par> group when the clip with the identified (ID) clip are finished. The ID is referring to the value of the clips id attribute.
Example
Try it yourself » |
| « Previous | Next Chapter » |
From http://www.w3schools.com (Copyright Refsnes Data)