Lesson 09
Lesson 09
CD-ROM video
window
Magnetic Ser
text text
Disk v er
window
Media integration
- Core issues due to shared resources: CPU, memory, network, etc.
Media integration catalog
Media integration in operate system
Media integration in storage system
Media integration in database system
Media integration in network system
Media integration in human computer interface
Media integration in message exchange
Media integration in document representation
Media integration in content presentation
......
Synchronization
at Sink Synchronization at Sink
Multiplexed channel
• Acoustic delay
20 ms
12 ft 8 ft
12 ms 8 ms
Distributed Music Over Network
Network
New York
Tokyo
Multimedia presentation
- A process to assembly and synchronize all media objects/components
that you have prepared to create a final multimedia product, such as a
electronic file, a slide show, a web document, an e-book, etc.
Add 3
4
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Audio/video
5 <!-- Fig. 28.4: EmbeddedVideo.html -->
6 <!-- Video via the embed Element -->
onto Webpage
7
8 <html xmlns = "http://www.w3.org/1999/xhtml">
9 <head>
Using 10
11
<title>Video via the embed Element</title>
</head>
embed tag 12
13 <body>
14 <h1>Displaying a Video using the embed Element</h1>
15 <h2>Car Driving in Circles</h2>
16
17 <table>
18 <tr><td><embed src = "car_hi.wmv" loop = "false"
19 width = "240" height = "176">
20 </embed></td>
21 </tr></table>
22 <hr />
23 This page plays the video once.<br />
24 Use the controls on the embedded video player to play the
25 video again.
26 </body>
27 </html>
1 <?xml version = "1.0"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4
Add 5
6
<!-- Fig. 28.2: Dynamicimg.html -->
<!-- Demonstrating the img element’s dynsrc property -->
Audio/video
7
8 <html xmlns = "http://www.w3.org/1999/xhtml">
9 <head>
onto Webpage
10 <title>An Embedded Video Using the dynsrc Property</title>
11 <bgsound src =
12 "http://msdn.microsoft.com/downloads/sounds/carib.MID"
Using
13 loop = "-1"></bgsound>
14 </head>
15
Functional space
Transition …. Synchronization Animation SVG
(“what”)
Region 1 Audio Channel
• Linking Animation
Media Media
• Content Control
Transition
Transition
SMIL High Level Document Structure
<smil>
<head>
<meta>
<!-- … information about the document … -->
</meta>
<layout>
<!-- … definitions used for the spatial layout … -->
</layout>
</head>
<body>
<!-- … objects, temporal relations, links … -->
</body>
</smil>
SMIL Meta
<smil>
<head>
<meta … />
</head>
</smil>
<smil>
<body>
<!-- … timing included here … -->
</body>
</smil>
<smil>
<body>
<!-- … media elements included here … -->
</body>
</smil>
• Includes the media declaration elements <text>, <img>, <audio>,
<video>, <textstream>, <animation>, and <ref>
• all elements (animation, img, ref, text, textstream and video) are
contained within a single containing block defined by the root-
layout element
SMIL Linking
<smil>
<body>
<!-- … linking included here … -->
</body>
</smil>
• Includes the <a> and <anchor> elements, e.g.,
<a href="http://www.w3c.org" >
<text src="media/w3c.txt" region="w3c”
begin="14.05s" dur="15.95s" />
</a>
• Timing applied to HTML <a> and <area> tags could provide much
or all of SMIL functionality; hence, linking modules under review
An Example of SMIL File
<smil xmlns="http://www.w3.org/2001/SMIL20/Language">
<head>
<layout>
<topLayout width="640px" height="480px">
<region id="whole" top="0px" left="0px"
width="640px“ height="480px" />
</topLayout>
</layout>
</head>
<body>
<seq>
<img id="img1" region="whole" src="../images/smile.jpg" top="0%" left="0%"
dur="2s"/>
<img id="img2" region="whole" src="../images/smile.jpg" top="0%" left="50%“>
dur=“3s"/>
<img id="img3" region="whole" src="../images/smile.jpg" top="50%" left="0%"
dur=“1s"/>
<img id="img4" region="whole" src="../images/smile.jpg" top="50%" left="50%"
dur=“5s"/>
</seq>
</body>
</smil>
SMIL Browsers and Authoring Tools
SMIL browser
• RealOne Platform by RealNetworks with full support for the SMIL 2.0
• GRiNS for SMIL-2.0 by Oratrix provides a SMIL 2.0 player
• Internet Explorer 6.0 by Microsoft including XHTML+SMIL Profile
• X-Smiles, version 0.4 a new java-based XML browser
Authoring Tools
• GRiNS Editor by Oratrix based on SMIL2 Editor family and streamlined
• SMILGen by RealNetworks, a SMIL (and XML) authoring tool
• Ezer by SMIL Media
• Fluition by Confluent Technologies
• Grins by Oratrix
25 <transition id = "crossFade" type = "fade" subtype = "crossfade"
26 dur = "2s" />
27
Another 28
29
30
</head>
<body>
<seq>
31 <par>
Example of 32
33
34
<img src = "book1.jpg" region = "image1"
transIn = "wipeForward" transOut = "wipeForward"
alt = "book1" dur = "6s" fill = "transition"
35 fit = "fill" />
SMIL File 36
37
38
<audio src = "bounce.au" dur = ".5s" />
</par>
<par>
39 <img src = "book2.jpg" region = "image1" transIn = "fadeIn"
40 transOut = "fadeOut" alt = "book2" dur = "6s"
1 <smil xmlns="http://www.w3.org/2000/SMIL20/CR/Language"> 41 fit = "fill" fill = "transition" />
2 42 <audio src = "bounce.au" dur = ".5s" />
8 <root-layout height = "300" width = "280" 49 <audio src = "bounce.au" dur = ".5s" />
50 </par>
9 background-color = "#bbbbee" title = "Example" />
51 <par>
10 52 <img src = "book4.jpg" region = "image1" transIn = "crossFade"
11 <region id = "image1" width = "177" height = "230" 53 transOut = "fadeOut" alt = "book4" dur = "6s"
12 top = "35" left = "50" background-color = "#bbbbee" /> 54 fit = "fill" fill = "transition" />
55 <audio src = "bounce.au" dur = ".5s" />
13 </layout>
56 </par>
14
57 <par>
15 <transition id = "wipeForward" dur = "2s" type = "barWipe" /> 58 <img src = "book5.jpg" region = "image1"
16 <transition id = "wipeBackward" dur = "2s" type = "barWipe" 59 transIn = "wipeForward" transOut = "wipeBackward"
60 alt = "book5" dur = "6s" fit = "fill"
17 subtype = "topToBottom" />
61 fill = "transition" />
18
62 <audio src = "bounce.au" dur = ".5s" />
19 <transition id = "fadeIn" dur = "2s" type = "fade" 63 </par>
20 subtype = "fadeFromColor" fadeColor = "#bbbbee" /> 64 <par>
Another 5
6
7
<!-- Fig. 28.16: SMILexample.html -->
<!-- embedding SMIL with RealOne Player -->
Example of 8
9
10
<html xmlns = "http://www.w3.org/1999/xhtml">
<head>
<title>Embedding SMIL with RealOne Player</title>
SMIL File 11
12
</head>
<body>
13 <div style = "text-align: center">
14 <embed src = "exampleSMIL.smil"
15 controls = "ImageWindow"
16 type = "audio/x-pn-realaudio-plugin"
17 width = "280" height = "300" autostart = "true">
18 </embed>
19 </div>
20 </body>
21 </html>
1 <?xml version = "1.0"?>
2
3 <!-- Fig. 28.17 : shapes.svg -->
4 <!-- Simple example of SVG -->
SVG
5
6 <svg viewBox = "0 0 300 300" width = "300" height = "300">
7
8 <!-- Generate a background -->
Scalable Vector 9
10
11
<g>
</g>
<path style = "fill: #eebb99" d = "M0,0 h300 v300 h-300 z"/>
12
Graphics 13
14
15
<!-- Circle shape and attributes -->
<g>
16
17 <circle style = "fill:green;" cx = "150" cy = "150" r = "50">
Produced by mathematical 18 <animate attributeName = "opacity" attributeType = "CSS"
19 from = "0" to = "1" dur = "6s" />
equations via XML vocabulary 20 </circle>
21
22 <!-- Rectangle shape and attributes -->
23
24 <rect style = "fill: blue; stroke: white"
25 x = "50" y = "0" width = "100" height = "100">
26 <animate attributeName = "y" begin = "mouseover" dur = "2s"
27 values = "0; -50; 0; 20; 0; -10; 0; 5; 0; -3; 0; 1; 0" />
28 </rect>
29
30 <!-- Text value and attributes -->
31
32 <text style = "fill: red; font-size: 24pt"
33 x = "25" y = "250"> Welcome to SVG!
34 <animateColor attributeName = "fill"
35 attributeType = "CSS" values = "red;blue;yellow;green;red"
36 dur = "10s" repeatCount = "indefinite"/>
37 </text>
38 </g>
39 </svg>
HTML+TIME (Timed Interactive Multimedia Extensions)
VRML file can be viewed by a specific VRML browser or a Web browser with plug-in
- 3D ObjectViewer, Cosmo Player, Community Place, GL View, WebDimension, WorldView, etc.
VRML file can be embedded in a HTML file via <Frame>, <EMBED>, <OBJECT>
<FRAME SRC=“my.wrl” width=“300” height= “280”>
<EMBED SRC=“my.wrl” width=“300” height= “280”>
Demos
SMIL
SVG
VRML