Building web pages with the Buzz Player Plugin

Creating a web page containing the Buzz plugin

  1. The embed tag
  2. Using the Buzz plugin
  3. Adding width and height
Back to TOC


1. The embed tag
There's a HTML tag called 'EMBED' for adding multimedia content to a page. The web browser will look for a appropriate plugin for rendering the type of the multimedia data. This can be graphics, sound or video:
<embed src = "video.avi">
This would your browser cause to load the plugin which plays AVI-files.
Adding MIME type information
It's recommended to add the MIME-type to the embed tag. The MIME type identifies the type of the multimedia data:
<embed src = "video.avi" type = "video/x-msvideo">
Many MIME-types are predefined (e.g. video/x-msvideo, audio/x-aiff, image/gif). Browsers can easier identify the type of data if the MIME-type is supplied.


2. Using the Buzz plugin
To use the player plugin on your HTML page you simply have to scribble an embed tag with the filename of your Buzz song and the MIME type "audio/x-bmx":
<embed src = "mysong.bmx" type = "audio/x-bmx">
The MIME type "audio/x-bmx" is not a predefined type. But the Buzz plugin registers this MIME type in the browser. So the browser knows what to do with multimedia data of type "audio/x-bmx".


3. Adding width and height
If you check out the example above you will notice that the plugin remains invisible. This is the default behavior of the Buzz plugin if no 'width' and 'height' parameters are given. To make the plugin visible (it contains some controls, so it's worth doing so) simply supply these 2 parameters:
<embed src = "mysong.bmx" type = "audio/x-bmx" width = 200 height = 80>
The plugin will not be streched if you alter this parameters. To make shure to use this values for optimal visual representation.