Media elements given below can be used to include media objects in a SMIL document:
Element
Description
Ver
<animation>
Defines an animation
1
<audio>
Defines an audio clip
1
<brush>
defines a fill color or fill pattern
1
<img>
defines a reference to an image object
1
<param>
defines a parameter to any other media element
1
<ref>
Defines a generic media reference
1
<text>
Defines a reference to a text object stored as text
1
<textstream>
Defines a reference to an text object stored as a text-stream
1
<video>
Defines a reference to a video object
1
Media Attributes
In a SMIL document each media object must be included using a reference (URL)
from src attribute. The src attribute is the most commonly
media elements.
The type attribute is used to define the media type. If the type attribute is
omitted the application should rely on the type information communicated by the
server. Developers should not rely on the file type extension to define the file
type.
Attribute
Description
Ver
erase
Defines the behavior of the element after any timing is
complete
1
src
Defines the source of a media object
1
type
Defines the media type
1
The <animation> Element
The <animation> element defines a references to an animation object stored as
vector graphics.
The <animation> element should not be confused with the <animate> element. The
<animation> element defines an animation object by reference. The <animate>
elements defines the animation of other elements.
The <audio> Element
This element defines a reference to an audio object stored as recorded
audio.