Difference between revisions of "SMIL Media Objects"
(Added HTML usage) |
|||
Line 25: | Line 25: | ||
Playing music in the background. | Playing music in the background. | ||
− | == Sound Volume Control == | + | === Sound Volume Control === |
For video and audio objects, you can specify the "sound level" attribute to control its audio volume. | For video and audio objects, you can specify the "sound level" attribute to control its audio volume. | ||
Line 34: | Line 34: | ||
Valid values for soundLevel is from 0% (mute) to 100% (max). | Valid values for soundLevel is from 0% (mute) to 100% (max). | ||
+ | |||
+ | == HTML Documents and Widgets (text and ref) == | ||
+ | |||
+ | For SMIL players that support HTML content, such as the IAdea XMP-3250/3350/3450 Media Appliances, one may use the <code>text</code> and <code>ref</code> elements to designate the content to play. | ||
+ | |||
+ | To enable HTML rendering, one MUST first activate the corresponding system component from the SMIL's <code>body</code> declaration, such as the following: | ||
+ | |||
+ | <source lang="smil"> | ||
+ | <body systemComponent="http://www.w3.org/1999/xhtml"> | ||
+ | </source> | ||
+ | |||
+ | There are two types of HTML contents: a simple page and an HTML Widget. | ||
+ | |||
+ | === Simple HTML Page === | ||
+ | |||
+ | A simple HTML page is represented by an URL to the HTML document. The page can be played using the following code: | ||
+ | |||
+ | <source lang="smil"> | ||
+ | <text src="http://server/index.html" dur="indefinte" /> | ||
+ | </source> | ||
+ | |||
+ | or | ||
+ | |||
+ | <source lang="smil"> | ||
+ | <ref src="http://server/index.html" type="text/html" dur="indefinte" /> | ||
+ | </source> | ||
+ | |||
+ | === HTML Widget === | ||
+ | |||
+ | An HTML Widget is a zipped HTML file system tree containing at the top level the file named "index.html" which can refer to other files using relative URLs within the zipped tree. A widget is loaded into a player as a self-contained media file, and is cached in the player's storage for offline playback. It can be accessed using the following code: | ||
+ | |||
+ | <source lang="smil"> | ||
+ | <ref src="http://server/content.wgt" type="application/widget" dur="indefinte" /> | ||
+ | </source> | ||
+ | |||
== Related == | == Related == |
Revision as of 08:34, 7 November 2011
SMIL supports multimedia objects, including
Contents
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).
HTML Documents and Widgets (text and ref)
For SMIL players that support HTML content, such as the IAdea XMP-3250/3350/3450 Media Appliances, one may use the text
and ref
elements to designate the content to play.
To enable HTML rendering, one MUST first activate the corresponding system component from the SMIL's body
declaration, such as the following:
<body systemComponent="http://www.w3.org/1999/xhtml">
There are two types of HTML contents: a simple page and an HTML Widget.
Simple HTML Page
A simple HTML page is represented by an URL to the HTML document. The page can be played using the following code:
<text src="http://server/index.html" dur="indefinte" />
or
<ref src="http://server/index.html" type="text/html" dur="indefinte" />
HTML Widget
An HTML Widget is a zipped HTML file system tree containing at the top level the file named "index.html" which can refer to other files using relative URLs within the zipped tree. A widget is loaded into a player as a self-contained media file, and is cached in the player's storage for offline playback. It can be accessed using the following code:
<ref src="http://server/content.wgt" type="application/widget" dur="indefinte" />
Related
- SMIL Playlists: seq, par, and excl playlists
- SMIL Screen Layout: multi-zone, multi-layer layout
- Sending SMIL to Player