AnswersSearchHelp
Boston University home page
Creating Multimedia with SMIL
 
 
   
    SMIL Concepts
 
 
 
 
 
    Layout
 
 
 
 
 
    Timing
 
 
 
 
    Practice
 
 
 
 
    Also See
   
   
    A/V Tutorials
   
   
   
   
   
   
   
   
    Vendor Sites
   
   

Loops And Fills

Loops and fills control what, if any, behavior accompanies the end of a clip within your presentation.

To set up a loop, use the repeat attribute. The code repeat="n" causes a clip or group of clips to play "n" number of times. You can add it to a clip source tag, as in the following example (the audio clip will repeat twice):

<audio src="rtsp://realserver.bu.edu:554/a/v/av/nis/training/smil/driving.rm" repeat="2" />

An end or a dur attribute can modify clip repetition. Suppose that the following video has a 3-minute internal timeline. The end and repeat attributes freeze the clip on-screen for 30 seconds before playback repeats:

<audio src="rtsp://realserver.bu.edu:554/a/v/av/nis/training/smil/driving.rm" repeat="2" end="0:2:30" />

Fills

If you don't want the clip to loop, you can use the fill attribute to either remove or freeze it.

The default value fill="remove" removes the clip. When this attribute is used with a still image, the image disappears as soon as the end time has been reached.

Use fill="freeze" to freeze a clip on its last frame. When you use fill="freeze" with a video, the video's last frame stays on the screen. If used with an image, the image remains in its playback area. For example:

<img region ="five" src="rtsp://realserver.bu.edu:554/a/v/av/nis/training/smil/five.gif" fill="freeze" />

When the image finishes streaming, it displays until the end of the entire presentation.

 

WebCentral UsingPublishingLearningTrainingConsultingWebCentral
AnswersSearchHelp
NIS  |  OIT  |  Boston University  |   October 24, 2002