There are many timing attributes that you can use in clips or hyperlinks.
The following sections describe the most commonly used attributes and the values
that you can use in SMIL timing attributes.
A D V E R T I S E M E N T
Timing Values and Examples
Timing Marker
Specifies
Example
Example Value
h
hours
begin="2.5h"
2 hours, 30 minutes
min
minutes
begin="2.75min"
2 minutes, 45 seconds
s
seconds
begin="15.55s"
15 seconds, 550 milliseconds
ms
milliseconds
begin="670.2ms"
670.2 milliseconds
To set a Begin Time
This part introduced how to the begin attribute, which creates a timing delay. Using the
begin attribute, you can vary the point at which a hyperlink becomes active and
a clip starts to play back within the presentation timeline:
In the preceding markup, the begin attribute delays the clip playback for
10.2 seconds. Were this clip in a sequence, there would be 10.2 seconds of blank
time before the clip starts.
Using Clip Begin and Clip End Times
The clipBegin and clipEnd attributes specify a clip's internal timing mark
where playback begin and end. They allow you to play just part of a clip that
has an internal timeline, such as an video,audio or animation clip. They have
no effect on group or static clips such as still images, though. The
example given below uses clipBegin and clipEnd with a video clip:
Here, the clip starts playing at its internal 10-second mark rather than at
its encoded beginning. It stops when it reaches its 50-second mark, having
played for a total of 40 seconds.
Specifying a Duration
The dur attribute controls how long a clip plays. The following
example ends the video after 80 seconds, regardless of the length of the clip's
internal timeline. If the video's timeline is shorter than 80 seconds, the
video's last frame appears frozen onscreen until the duration elapses:
<video src="video1.rm" dur="80s"/>
A common use of dur is to control how long a static clip such as an image
appears onscreen. The example below displays an image for three minutes: