90 likes | 213 Views
N351 Multimedia Programming. XML and SMIL. HTML is great. Universal Text-based Human-Readable Flexible. HTML is inadequate. Limited formatting No sense of time No real interaction Limited to web pages. Enter XML. Similar to HTML Uses nested tags to describe data
E N D
N351 Multimedia Programming XML and SMIL
HTML is great • Universal • Text-based • Human-Readable • Flexible
HTML is inadequate • Limited formatting • No sense of time • No real interaction • Limited to web pages
Enter XML • Similar to HTML • Uses nested tags to describe data • Not limited to web pages • Can describe ANYTHING • You can define your own tags
Example: Pets <pets> <cat> <name>Lucy</name> <color>tabby</color> <breed>shorthair</breed> </cat> <dog name = “Muchacha” color = “brown” breed = “mutt” /> </pets>
XML Rules • Case-sensitive • All tags have an ending tag or end with a / • All attributes in quotes
Some XML Languages • SMIL (Structured Multimedia Integration Language) • SVG (Scalable Vector Graphics) • WML (Wireless Markup Language) • SIMILE (Structured Instructional Media Integration Language Environment)
SMIL • A W3 Consortium Standard • Supported by several browsers (including IE 5.5+) • Best support in Real Player • Designed primarily for time-based multimedia slideshows • Integrates video, audio, still images, text
SMIL Basics • Surrounded by <smil></smil> tags • <head> area contains • meta tags • layout definition (visual layout) • <body> contains • clips • temporal layout