SMIL Question:

How to specify the duration?

Tweet Share WhatsApp

Answer:

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

Download SMIL PDF Read All 22 SMIL Questions
Previous QuestionNext Question
What is use of clipBegin and clipEnd?What are the media elements in SMIL?