SMIL
● Lecture 5– Part A
Ing. Miloslav Nič Ph.D.letní semestr 2010-2011BI-XML© Miloslav Nič, 2011
Evropský sociální fond Praha & EU: Investujeme do vaší budoucnosti
SMIL and media
● combine different media● make them accessible in a sequence or in
parallel● SMIL is often used as a domain specific
language in independent applications
Synchronized Multimedia Integration Language (SMIL)
● http://www.w3.org/TR/SMIL2/ (SMIL 2.0)● http://www.w3.org/TR/SMIL3/ (SMIL 3.0)● from abstract: an XML-based language that
allows authors to write interactive multimedia presentations:
– describe the temporal behavior of a multimedia presentation
– associate hyperlinks with media objects
– describe the layout of the presentation on a screen
Ambulant (http://www.ambulantplayer.org/)
FAQ: What's new in Ambulant 2.0?
● full support for SMIL 3.0: inline text through smilText, variables and extended customization through SMIL State, pan and zoom to display partial images or video, transparency, many more.
NewYorkGeo
Synchronized Multimedia Integration Language (SMIL) 1.0
Specification
● W3C Recommendation 15-June-1998● http://www.w3.org/TR/REC-smil/● Root element: <smil>● <smil> children: <head> and <body>
<head>
● <layout>– positions of elements
● <switch>– for different <layout>s
● <meta>– variable document properties
<body>● <a>
● <animation>
● <audio>
● <img>
● <par>
● <ref>
● <seq>
● <switch>
● <text>
● <textstream>
● <video>
<par> and <seq>
● time synchronization● <par>
– may overlap in time (parallel execution)
– @begin: time for the explicit beginning of the element
● <seq>– sequential execution
Standard examples
Timing attributes
● @begin– explicit begin of an element
● @end– the explicit end of an element
● @dur– the explicit duration of an element
Media objects
● inclusion of media objects into a SMIL presentation, generic: <ref> and a set of synonyms <animation>, <audio>, <img>, <text>, <textstream>, and <video>
● included by reference (using a URI)● types:
– with an intrinsic duration (continuous media)● <video>, <audio>, <animation>, <textstream>
– without intrinsic duration (discrete media)● <text>, <img>
Synchronized Multimedia Integration Language (SMIL 2.1)
● W3C Recommendation 13 December 2005● http://www.w3.org/TR/SMIL2/
SMIL 2.1 Modules
● Module: a collection of semantically-related XML elements, attributes, and attribute values that represents a unit of functionality
● Language Profile: a combination of modules
Media
● Modules:– BasicMedia
– MediaClipping
– MediaClipMarkers
– MediaParam
– MediaAccessibility
– MediaDescription
BasicMedia Module
Media elements' atributes
● @src– URI used to fetch associated media
● @type– Content type of the media object referenced by
the @src attribute
Standard Table of Contents
Synchronized Multimedia Integration Language (SMIL 3.0)
● W3C Recommendation 01 December 2008● http://www.w3.org/TR/SMIL3/
SMIL 3.0 DAISY Profile
● DAISY digital talking books are fully accessible for persons with print disabilities
● several accessibility features have been added to the SMIL language, and a fully-conforming language profile has been defined for DAISY books
SMIL Test Suites
● SMIL 2.0 Testsuite– http://www.w3.org/2001/SMIL20/testsuite/
● SMIL 2.1 Test Suite– http://www.w3.org/2005/SMIL21/testsuite/
● SMIL 3.0 Test Suite– http://www.w3.org/2007/SMIL30/testsuite/
A test example
SMIL 2.1 @Zvon.org