SMIL Medya Elemanı
- Önceki Sayfa SMIL Geçiş
- Sonraki Sayfa SMIL Referans
SMIL uses media elements to describe content.
Media Element
The following media elements can be used to include media objects in SMIL documents:
Element | Description | Ver |
---|---|---|
<animation> | Define animation. | 1 |
<audio> | Define audio clip. | 1 |
<brush> | Define brush. | 1 |
<img> | Define image. | 1 |
<param> | Define parameter. | 1 |
<ref> | Define general media reference. | 1 |
<text> | Define text. | 1 |
<textstream> | Define text stream. | 1 |
<video> | Define video. | 1 |
Media Attribute
The reference (URL) in the src attribute must be used to include each media object in the SMIL document. The src attribute is the most commonly used attribute in media elements.
The type attribute is used to define the media type. If the type attribute is ignored, the application depends on the type information informed by the server. Developers should not rely on file extension names to define file types.
Attribute | Description | Ver |
---|---|---|
erase | Define the behavior of the element after the timing is completed. | 1 |
src | Define the source of the media object. | 1 |
type | Define media type. | 1 |
For a complete list of SMIL elements and attributes, please visit CodeW3C.com SMIL Reference Manual.
<animation> element
<animation> element defines a reference to an animation object that is stored in vector graphics or other forms.
Do not confuse the <animation> element with the <animate> element. The <animation> element defines an animation object by reference. The <animate> element defines the animation display of other elements.
<audio> element
<audio> element defines a reference to an audio object that is stored as recorded audio.
Örnek:
<html xmlns:t="urn:schemas-microsoft-com:time"> <head> <?import namespace="t" implementation="#default#time2"> </head> <body> <t:audio src="liar.wav" repeatCount="indefinite" type="wav" /> </body> </html>
<brush> element
<brush> element defines the fill color or fill pattern.
This element defines the coloring or pattern to be used as a substitute for the media object.
<img> element
<img> element defines a reference to an image object that is stored in JPG or other image formats.
Örnek:
<img src="myimage.gif" type="GIF" />
<param> element
<param> elementi diğer medya elementleri için parametre tanımlar.
Örnek:
<param name="color" value="red" />
<ref> elementi
<ref> elementi genel medya elemanlarına olan atıfı tanımlar.
Medya türü iyi tanımlanmamış durumdaysa <ref> elementi kullanılabilir.
<text> elementi
<text> elementi metin nesnesine olan atıfı tanımlar, bu nesne metin olarak saklanmıştır.
<textstream> elementi
<textstream> elementi metin akışı olarak saklanan metin nesnesine olan atıfı tanımlar.
<video> elementi
<video> elementi kaydedilmiş video nesnesine olan atıfı tanımlar.
Örnek:
<html xmlns:t="urn:schemas-microsoft-com:time"> <head> <?import namespace="t" implementation="#default#time2"> </head> <body> <t:video src="http://www.ananova.com/about/vap_windows_check.wmv" repeatCount="indefinite" type="wmv" /> </body> </html>
- Önceki Sayfa SMIL Geçiş
- Sonraki Sayfa SMIL Referans