smil 2.0 kari pihkala [email protected] 25.3.2003 hiit – xml technologies

21
SMIL 2.0 SMIL 2.0 Kari Pihkala Kari Pihkala [email protected] http://www.x-smiles.org/ 25.3.2003 HIIT – XML Technologies

Upload: nancy-carroll

Post on 01-Jan-2016

218 views

Category:

Documents


4 download

TRANSCRIPT

Page 1: SMIL 2.0 Kari Pihkala Kari.Pihkala@hut.fi  25.3.2003 HIIT – XML Technologies

SMIL 2.0SMIL 2.0Kari PihkalaKari Pihkala

[email protected]

http://www.x-smiles.org/

25.3.2003 HIIT – XML Technologies

Page 2: SMIL 2.0 Kari Pihkala Kari.Pihkala@hut.fi  25.3.2003 HIIT – XML Technologies

Kari Pihkala 25.3.2003 HIIT - XML

OutlineOutline

SMIL 2.0 – history – quick tutorial Modules and Profiles SMIL Use Cases SMIL in X-Smiles SMIL demos in X-Smiles Multimedia Messaging System (MMS) Future of SMIL

Page 3: SMIL 2.0 Kari Pihkala Kari.Pihkala@hut.fi  25.3.2003 HIIT – XML Technologies

Kari Pihkala 25.3.2003 HIIT - XML

SMIL 2.0 OverviewSMIL 2.0 Overview Synchronized Multimedia Integration

Language Recommendation specified by W3C XML-based language Designed for Internet use Easy to write, like HTML Doesn’t define media formats, only

integrates them

Page 4: SMIL 2.0 Kari Pihkala Kari.Pihkala@hut.fi  25.3.2003 HIIT – XML Technologies

Kari Pihkala 25.3.2003 HIIT - XML

HistoryHistory

Dec 1995 - SMIL designing started Nov 1997 - SMIL 1.0 Recommendation Mar 1998 - First SMIL implementation Aug 1999 - First public draft of SMIL 2.0 Aug 2001 - SMIL 2.0 Recommendation

Page 5: SMIL 2.0 Kari Pihkala Kari.Pihkala@hut.fi  25.3.2003 HIIT – XML Technologies

Kari Pihkala 25.3.2003 HIIT - XML

Typical SMIL ElementsTypical SMIL Elements<head> - Head element <meta> - Meta data, such as author, copyright... <layout> - Layout of the presentation <region> - Region describing positioning<body> - Body element <seq> - Sequential time container <par> - Parallel time container <img>, <audio>, <video> - Media to be played <switch> - Selects between elements <a>, <area> - Linking

Page 6: SMIL 2.0 Kari Pihkala Kari.Pihkala@hut.fi  25.3.2003 HIIT – XML Technologies

Kari Pihkala 25.3.2003 HIIT - XML

SMIL 2.0 Document ExampleSMIL 2.0 Document Example<smil>

<head>

<layout>

<region id=”reg1” top=”0” left=”0” width=”300” height=”200” />

<region id=”reg2” left=”300” width=”300” height=”200” />

</layout>

</head>

<body>

<seq>

<img id=”id1” src=”intro.jpg” region=”reg1” dur=”4s” />

<audio id=”id2” src=”music.wav” dur=”2s” />

<par>

<video id=”id3” src=”movie5s.mpg” region=”reg1” />

<img id=”id4” src=”intro.jpg” begin=”3s” region=”reg2” />

</par>

</seq>

</body>

</smil>

Page 7: SMIL 2.0 Kari Pihkala Kari.Pihkala@hut.fi  25.3.2003 HIIT – XML Technologies

Kari Pihkala 25.3.2003 HIIT - XML

Modularization and profilingModularization and profiling

Modularization breaks an XML language into modules– One module has only a small set of elements– Reusable element packages

Profiling combines modules into usable languages– Small profiles for small devices– Complex profiles for big machines

Page 8: SMIL 2.0 Kari Pihkala Kari.Pihkala@hut.fi  25.3.2003 HIIT – XML Technologies

Kari Pihkala 25.3.2003 HIIT - XML

SMIL 2.0 ProfilesSMIL 2.0 Profiles SMIL 2.0 divided into 45 modules Modules grouped into functional areas:

1. Structure2. Metainformation3. Layout4. Timing5. Media Objects

W3C: SMIL 2.0 Basic Profile W3C: SMIL 2.0 Full Profile 3GPP: SMIL MMS profile

6. Linking7. Content Control8. Animation9. Transitions10. Time Manipulations

Page 9: SMIL 2.0 Kari Pihkala Kari.Pihkala@hut.fi  25.3.2003 HIIT – XML Technologies

Kari Pihkala 25.3.2003 HIIT - XML

Use cases for SMILUse cases for SMIL Multimedia Messaging Slideshows Advertisements Internet TV Education Corporate communications Product information User’s Guides Net meetings etc.

Page 10: SMIL 2.0 Kari Pihkala Kari.Pihkala@hut.fi  25.3.2003 HIIT – XML Technologies

Kari Pihkala 25.3.2003 HIIT - XML

Some SMIL Editing ToolsSome SMIL Editing Tools Oratrix: GRiNS authoring tools for SMIL 2.0 RealNetworks: RealSlideshow Sausage Software: SMIL Composer SuperTool Alliare: SMIL Tag Pack for HomeSite and Cold

Fusion Studio INRIA: LimSee1 SMIL editor

Excellent SMIL 2.0 editors still not available

Page 11: SMIL 2.0 Kari Pihkala Kari.Pihkala@hut.fi  25.3.2003 HIIT – XML Technologies

Kari Pihkala 25.3.2003 HIIT - XML

SMIL Support in PlayersSMIL Support in Players2.0 • Oratrix GRiNS player: SMIL 2.0 Language2.0 • IE 5: many modules (XHTML+SMIL)2.0 • X-Smiles 0.71: SMIL 2.0 Basic Profile 2.0 • QuickTime Player 62.0 • RealOne Player1.0 • Compaq HPAS1.0 • Productivity Works Lp Player1.0 • SOJA from Helio1.0 • S2M2 by NIST1.0 • Schmunzel by SunTREC Salzburg

Page 12: SMIL 2.0 Kari Pihkala Kari.Pihkala@hut.fi  25.3.2003 HIIT – XML Technologies

Kari Pihkala 25.3.2003 HIIT - XML

X-Smiles BrowserX-Smiles Browser

XML browser– XSL FO, SVG, SMIL, XForms...– XSLT transformations– ECMAScript

Java-based– Portability, available components, JMF

Open-source

Page 13: SMIL 2.0 Kari Pihkala Kari.Pihkala@hut.fi  25.3.2003 HIIT – XML Technologies

XML Parser XSL Processor

Browser Configuration

ECMAScript HandlingMLFC mgmt. & retrieval

General Functionality

Event Broker

ECMAScript interpreter + extensions

MLFC specific GUIGeneral GUI

DOM Builder

XSL FO MLFC

Rendering

Presentation

SMIL MLFC

Rendering

DOM Interface

SAX Interface

Presentation Presentation

SVG MLFC

Rendering

source MLFC

treeMLFC

XML Processing

Browser core functionality

User interfaceand interaction

MLFCs

Validation

XForms MLFC

Rendering

Page 14: SMIL 2.0 Kari Pihkala Kari.Pihkala@hut.fi  25.3.2003 HIIT – XML Technologies

Kari Pihkala 25.3.2003 HIIT - XML

SMIL support in X-Smiles 0.71SMIL support in X-Smiles 0.71 SMIL 2.0 Basic profile

+ Event Timing module, Basic Animations, ...

Can be used as a standalone player Can be used as a Java-component

// Create the SMIL player  JSMILPlayer smil = new JSMILPlayer();  // Initialize with the filename (could also be URL)  if (smil.init(filename) == false)     System.out.println("ERROR initializing "+filename);  // Create a frame and add the SMIL component to it  JFrame frame = new JFrame("Simple SMIL player");  frame.setSize(600,400);  frame.getContentPane().add(smil, BorderLayout.CENTER);  frame.show();  // Start the SMIL presentation  smil.start();

Page 15: SMIL 2.0 Kari Pihkala Kari.Pihkala@hut.fi  25.3.2003 HIIT – XML Technologies

Kari Pihkala 25.3.2003 HIIT - XML

SMIL features in X-SmilesSMIL features in X-Smiles Supports XHTML+CSS (colors/fonts) Supports ECMAScripts

– click, mousedown, mouseover... Can integrate several media formats

– Images: GIF, JPEG and PNG– Audio: AIFF, AU, AVI, MIDI, MP3, OGG and WAV– Video: AVI, MPEG-1, QT– XML: SMIL, XSL FO, XHTML and SVG

Uses Java Media Framework for audio/video Works also without JMF

Page 16: SMIL 2.0 Kari Pihkala Kari.Pihkala@hut.fi  25.3.2003 HIIT – XML Technologies

Kari Pihkala 25.3.2003 HIIT - XML

SMIL DemosSMIL Demos

Example Ahma Gulo Gulo Drinks Bikes SVG in SMIL

Try it out at www.x-smiles.org !

Page 17: SMIL 2.0 Kari Pihkala Kari.Pihkala@hut.fi  25.3.2003 HIIT – XML Technologies

Kari Pihkala 25.3.2003 HIIT - XML

Multimedia Messaging Multimedia Messaging SystemSystem

A subset of SMIL 2.0 Basic profile– Very restricted

Supports text, audio (amr), images (png/jpg), video (3gpp)

Included in the latest 2.5G phones– Nokia 7650 / 6610, Ericsson T68i, Siemens S57…

Possible to send MMS to e-mail address– SMIL and media files delivered as attachments

Page 18: SMIL 2.0 Kari Pihkala Kari.Pihkala@hut.fi  25.3.2003 HIIT – XML Technologies

Kari Pihkala 25.3.2003 HIIT - XML

MMS ExampleMMS Example<smil>

<head> <layout><root-layout height="208" width="176" />

<region id="Video" height="69%" width="100%" left="0%" top="0%"

fit="meet" />

<region id="Text" height="30%" width="100%" left="0%" top="69%

fit="scroll" /> </layout></head><body> <par dur="20000ms">

<video src="Video.3gp" region="Video" />

<text src="Lataa_No.txt" region="Text" />

</par>

...</body>

</smil>

Page 19: SMIL 2.0 Kari Pihkala Kari.Pihkala@hut.fi  25.3.2003 HIIT – XML Technologies

Kari Pihkala 25.3.2003 HIIT - XML

MMS demonstrationMMS demonstration Video + text + audio

Page 20: SMIL 2.0 Kari Pihkala Kari.Pihkala@hut.fi  25.3.2003 HIIT – XML Technologies

Kari Pihkala 25.3.2003 HIIT - XML

Future of SMILFuture of SMIL

SMIL 3.0 ?? – Extensions for professional multimedia

authoring– Support for 3D audio

3G phones– Superset of SMIL 2.0 Basic profile

+ Event Timing Module, …

More SMIL modules into SVG 1.2

Page 21: SMIL 2.0 Kari Pihkala Kari.Pihkala@hut.fi  25.3.2003 HIIT – XML Technologies

Kari Pihkala 25.3.2003 HIIT - XML

The EndThe End

Thanks for Coming!