| This example demonstrates how you can instruct a Beatnik Player embedded in an HTML page to play music files from a list. |
A practical application of this technique would be a Web site that allows the user to preview music files before choosing one to download and use in their own Web page. It could also just be a convenient way for a multimedia musician to let visitors listen to showcase compositions - all on just one page. The advantage of instructing the Beatnik Player to play a new file is that the user does not need to leave the preview page, but can keep selecting new files from the list, or read further information on the page as they listen to a file they have chosen. The code is also much easier to author than for a technique that might make use of a frameset.
Click on any one of the files in the list to the right. Clicking on one of these links will instruct the player embedded below the list to play the chosen file. Now, take a look at the source for this page and see how simple the code is.