Introduction S impleauthoring Simple text editor Free and open I nteractive audiovisual presentations "rich media"/multimedia presentations streaming audio and video , images, text , etc. SMIL 1.0: 15 June 1998 (30 pages) SMIL 2.0: 07 August 2001 (540 pages) SMIL 2.1: 27 September 2005 (386 pages) Parties involved RealNetworks, Intel, Philips, CWI , Nokia, ...
4.
Introduction (Cont’d) SMILis XML DTD, Schema Set of modules Integration language Media referred to, not included Profiles SMIL Basic Mobile devices XHTML+SMIL Timing for text
5.
Implementations RealNetworks RealOne ( SMIL 2.0 ) Oratrix GRiNS player and editor Microsoft Internet Explorer > 5.5 : XHMTL+SMIL Apple QuickTime > 4.1 : SMIL 1.0 Adobe SVG Viewer : animation in SVG
6.
A simple SMILdocument <?xml version="1.0"?> <!DOCTYPE smil PUBLIC "-//W3C//DTD SMIL 2.0//EN" "http://www.w3.org/2001/SMIL20/SMIL20.dtd"> < smil xmlns="http://www.w3.org/2001/SMIL20/Language" xml:lang="en" title="SMIL example" > < head > </ head > < body > </ body > </ smil > example : http://www. yomiuri .co. jp/stream/hotels/e_smil/torino . smi
7.
Media types <textsrc=“…” region=“…”> Plain text (txt, ascii, …) <textstream src=“…” region=“…”> stream, with timing (newsticker, subtitles, …) <img src=“…” region=“…”> As in HTML (GIF, JPEG, PNG, …) <audio src=“…”> (MP3, WAV, AU, …) <video src=“…” region=“…”> RealMovie, AVI, MPEG, MOV <animation src=“…” region=“…”> Vector graphics (SVG, SWF, VML, …)
Synchronization and clippingSynchronization <img src =“…” dur="6s" /> Last 6 seconds <img src=“…” begin=“2s” /> After two seconds Clipping <video src="movie.mpg" clipBegin="20s" /> Starting 20 seconds into the video <video src="movie.mpg" clipEnd="26:30" /> Cutting out the last scene <video src="m.mpg" clipBegin="4:55.7" clipEnd="4:55.7" /> Showing 7th frame after 4:55
<Seq> Children executedafter one another <seq> < img src = "vim32x32.gif“ alt = "The vim icon“ region = "vim_icon“ dur = "6s" /> < img src = "madewithsoja.gif“ alt = "Made with SOJA“ region = "soja_icon“ dur = "4s" begin = "1s" /> </seq>
12.
<par> Children areexecuted in parallel, starting at same time, i.e. start time of <par> <par> < img src = "vim32x32.gif“ alt = "The vim icon“ region = "vim_icon“ dur = "6s" /> < img src = "madewithsoja.gif“ alt = "Made with SOJA“ region = "soja_icon“ dur = "6s" /> </par>
13.
<par> (2) <par> <text src=“ x .html" region="t" dur="5s" /> <video src=“ y .mpv" region="main" /> <audio src=“ z .aiff" region="music" /> </par>
14.
<par> and <seq>together <seq> <par> <text src=“ x .html" region="title" dur="5s" /> <video src=“ y .mpv" region="main" /> <audio src=“ z .aiff" region="music" /> </par> <par> <text src=“ a .html“ region="title" dur="2s" /> <video src=“ b .mpv" region="main" /> <audio src=“ c .aiff“ region="music" /> </par> </seq>
Multiple begin’s <par><audio id="ring" src="ring.wav" repeatCount="4"/> <img src="jumping_phone.gif" begin="0; ring.repeat" /> </par> 1 st ring doesn’t count as repeat Audio repeats , image restarts
19.
Layout Rectangular areasProcess Create regions Place media in regions Region attributes Width, height left, right, top, bottom backgroundColor, showBackground fit regionName z-index Measurements relative values (px, em, or ex) absolute values (cm, mm, in, pt, or pc) percentages.
20.
Layout tags Rootscreen: < root-layout width = "300" height = "200“ background-color = "white" /> Absolute positioning 75 pixels from left border and 50 pixels from top border Head: < region id = " vim_icon “ left = "75" top = "50“ width = "32" height = "32" /> Body: < img src = "vim.gif“ alt= "The vim icon“ region = " vim_icon " />
21.
Layout tags (2)Relative positioning 50% from left border and 40% from top border Head: < region id = " vim_icon " left = "50%" top = "40%" width = "32" height = "32" />
Layout tags (3)< head > < layout > < region id = "region_1“ left = "50" top = "50“ width = "150" height = "125“ z-index="2" /> < region id = "region_2“ left = "25" top = "25“ width = "100“ height = "100“ z-index="1" /> </ layout > </ head > < body > < par > < text src = "text1.txt“ region = "region_1" /> < text src = "text2.txt“ region = "region_2" /> </ par > </ body > </ smil >
<switch> < body>< switch > <!-- French *AND* if a bitrate greater than 28000 --> < text src = “ 1 .txt" system-language = "fr“ system - bitrate = "28000" /> <!-- French *AND* if a bitrate greater than 14 000 --> < text src = “ 2 .txt" system-language = "fr“ system-bitrate = "14000" /> <!-- English *AND* if a bitrate greater than 28000 --> < text src = “ 3 .txt" system-language = "en“ system-bitrate = "28000" /> <!-- English *AND* if a bitrate greater than 14000 --> < text src = “ 4 .txt" system-language = "en“ system-bitrate = "14000" /> </ switch ></ body >