Difference between revisions of "SMIL Media Objects"

From A-SMIL.org
Jump to: navigation, search
(Text (smilText))
(Added soundLevel info)
Line 33: Line 33:
  
 
Playing music in the background.
 
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.
 +
 +
<source lang="smil">
 +
<video src="ad1.mpg" soundLevel="20%" />
 +
</source>
 +
 +
Valid values for soundLevel is from 0% (mute) to 100% (max).
  
 
== Related ==
 
== Related ==

Revision as of 11:21, 23 June 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.

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