SMIL Media Objects

From A-SMIL.org
Revision as of 11:21, 23 June 2010 by SMIL T.A. (Talk | contribs)

Jump to: navigation, search

SMIL supports multimedia objects, including

Video (video)

<video src="ad1.mpg" />

A simple video played for its entire duration.

Still Image (img)

<img src="ad2.jpg" dur="5s" />

The dur attribute specifies duration of the still image during playback.

Text (smilText)

<smilText textMode="crawl" region="ticker" textConceal="initial" textAlign="right" 
    textColor="white" textFontSize="80px" textRate="80" dur="20">Hello, world.</smilText>

Crawling "Hello, world." across the top of a screen region.

Audio (audio)

<audio src="music.mp3" />

Playing music in the background.

Sound Volume Control

For video and audio objects, you can specify the "sound level" attribute to control its audio volume.

<video src="ad1.mpg" soundLevel="20%" />

Valid values for soundLevel is from 0% (mute) to 100% (max).

Related