|
|
|
Multimedia with a SMIL
By Mark Gibbs Your CEO has a flash of genius regarding the intranet: He wants to post a slideshow that employees can look at while listening to him explain his new diversification strategy. That's great, you think. You've wanted to create a snazzy multimedia application for the intranet, and synchronizing an audio track with images in the slideshow will satisfy that itch. But your euphoria will fade, and fast, because you'll quickly find there's a major problem with creating multimedia Web presentations: It's impossible to synchronize when and where on the screen the different media are presented. And without synchronization, Web content lacks the dynamism that makes for a powerful information delivery mechanism. Today, delivering a slideshow with synchronized audio means you have to use complex JavaScript, Java applets or ActiveX kludges. Portability among operating systems is out of the question. But vendors and standards bodies have been pursuing a way to deliver synchronized multimedia applications on the Web. The most advanced approach is Synchronized Multimedia Integration Language (SMIL). Pronounced "smile," SMIL allows for flexible integration of multiple media streams. The World Wide Web Consortium (W3C) has signed off on SMIL as a Proposed Recommendation and is testing early proof-of-concept implementations. An even more encouraging sign is that SMIL has gathered good industry support since becoming a working draft last November. The support comes from a number of influential organizations, including Lucent/Bell Labs, RealNetworks, Inc., Microsoft Corp., Netscape Communications Corp., Philips Electronics N.V. and Digital Equipment Corp. The proposed SMIL standard defines how a multimedia Web broadcast is specified in a single file. This .smi file is a simple text file that you can create and modify with any text editor. The file's content is a relative of HTML. One of SMIL's great appeals is simplicity. The specification uses only six tags, and you can harness most of SMIL's power by mastering just two of them - <parallel> and <sequential>. These define when to play media items. The <sequential> tag is the default for untagged media items. For example, the following SMIL file will play the referenced sound files in sequence:
<smil> The <smil> tag simply declares that the file is a SMIL specification. The header uses the standard HTML meta tags to define presentation attributes, which are global definitions unless overridden. Overriding is easy. For example, if you need to cite a different author, you can override the attributes with a local definition. Overriding can be applied to any attribute, as shown here:
<audio src="rtsp://www.gibbs.com/closetune.ra" SMIL can use any multimedia streaming protocol but the SMIL documentation references the Real Time Streaming Protocol (RTSP) because it is the most developed. The Internet Engineering Task Force is considering RTSP, specified in RFC 2326, as an Internet Draft.
More media
<par> You also can define what part of an item is played, and when. Writing <audio src="rtsp://www.gibbs. com/introtune.ra" begin="6s" clip-begin="1.4s" clip-end= "15.0s"/> would delay the audio for 6 seconds, then have it play from 1.4 seconds into the data until 15 seconds into the data. SMIL's <layout> tag specifies exactly where items will appear on the rendered Web page. This tag defines regions and attributes for the media items displayed. The <root-layout> tag specifies the entire display region size and color and then specific areas inside that are defined by name. For example:
</smil> In the "head" section, I've defined two regions inside the main "root-layout" region. The body section assigns the playing of the media in the first <par> block and then those in the second <par> block. Note that the use of the regions can be changed as required - the first <par> block plays text in region2 while the second <par> block uses that region for video. Another SMIL feature is the ability to specify different aspects of the connection quality and environment. This allows the server or browser to select media with the appropriate resolutions for the available bandwidth. SMIL's future looks bright. The W3C is testing early SMIL interpreters, and RealNetworks has incorporated SMIL in its latest product, RealSystem G2 (see graphic). This is a safe starting point for experiments with synchronized multimedia presentations. Marketplace Index | How to Advertise | Copyright
Home |
NetFlash |
This Week |
Industry/Stocks
|