How to specify the duration? - SMIL

How to specify the duration?



- The dur attribute is used to specify the time span for the clip / image.

- Following example plays the clip for 40 seconds.
<video src="myvideo.rm" dur="40s"/>

- When the duration of the video is less than 40 seconds, the last frame of the video appears frozen on the screen, until the duration elapses.

- The duration can be specified by number of minutes also.

- Following example specifies the image to appear for 5 minutes onscreen.
<img src="myimage.gif" dur="5min"/>
Post your comment