Difference between revisions of "SMIL Media Objects"

From A-SMIL.org
Jump to: navigation, search
(Added soundLevel info)
Line 16: Line 16:
  
 
The <code>dur</code> attribute specifies duration of the still image during playback.
 
The <code>dur</code> attribute specifies duration of the still image during playback.
 
== Text (smilText) ==
 
 
<source lang="smil">
 
<smilText textMode="crawl" region="ticker" textConceal="initial" textAlign="right"
 
    textColor="white" textFontSize="80px" textRate="80" dur="20">Hello, world.</smilText>
 
</source>
 
 
Crawling "Hello, world." across the top of a screen region.
 
  
 
== Audio (audio) ==
 
== Audio (audio) ==

Revision as of 10:35, 16 September 2010

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.

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