October 27, 2016
Hot Topics:

Working with SMIL

  • September 24, 1998
  • By John Maxwell Hobbs
  • Send Email »
  • More Articles »

Part 2 of 2

The next example demonstrates more complex, relational behavior by incorporating music and timed text.

By placing the following reference inside the first <par> node along with the instructions for the background image

we create "audio wallpaper" for the presentation. Note that although it is not a visual element, the audio file still requires a region to be declared in the layout node.

This presentation also incorporates text items related to specific images. This is achieved by creating a sequence of <par> nodes, each containing an image element and a text element. For example:

Note that the source of the text element is contained within the document itself. This could just as easily be done by referencing a text document via a URI instead. For example:

Or a remote document:

The next presentation incorporates an audio narration keyed to specific slides. It demonstrates the use of "clip-begin."

This can also be stated in SMPTE format, which in this case would look like this:

The use of SMPTE allows for the easy porting to SMIL of an Edit Decision List (EDL), created in a video-editing environment such as Avid or Premiere.

The narration consists of a single audio file containing five separate segments. In order to synchronize the appropriate narration with a specific image, the SMIL application is instructed to begin playing the audio file a specified interval from its beginning. In this case, the value is "npt=10s", which means ten seconds from the beginning in normal playing time.

This is one of the most powerful features of SMIL, because it allows the reuse of a single sequential media file in a number of distributed presentations. A news site presenting a press conference could offer the entire conference or just edited highlights using the same media source.

The final example takes the previous self-running presentation and turns it into a user-guided slide show that could be used in a presentation. Keep in mind that all of these presentations have made use of the same media files. Unlike formats such as Shockwave and ASF that "containerize" their media, SMIL allows presentations to be modified "on the fly."

This presentation makes use of SMIL's hyperlinking feature.

As you can see, the syntax is almost identical to HTML. In this document, all links reference nodes within the same document, but they can also link to distributed .smil documents. A SMIL browser could display an HTML page with the proper plug-in, or an HTML browser could use a plug-in to display an embedded SMIL document.

This just scratches the surface of what SMIL can do. SMIL also offers support for bandwidth management, alternate layout and content, and extensibility. These will be covered in future articles. A good source of further information about SMIL is the justsmil.com Web site, as well as the W3C itself.

John Maxwell Hobbs is a musician and has been working with computer multimedia for over fifteen years. He is currently in charge of multimedia development at Ericsson CyberLab New York. His interactive composition "Web Phases" was recently one of the winners of ASCI's Digital '98 competition and is currently on exhibit at the New York Hall of Science. He is also on the board of directors of Vanguard Visions, an organization dedicated to fostering the work of artists experimenting with technology. He is the former producing director for The Kitchen in New York City.

Page 2 of 2

Comment and Contribute


(Maximum characters: 1200). You have characters left.



Enterprise Development Update

Don't miss an article. Subscribe to our newsletter below.

Sitemap | Contact Us

Thanks for your registration, follow us on our social networks to keep up-to-date
Rocket Fuel