PlaySound - Java mini-applet Freeware

by John Criswick, The Internet Conveyor Ltd.


Introduction

Downloading and Using PlaySound

Feedback - Fine Print


Introduction

PlaySound is an ultra-simple applet that is only 1,123 bytes in size. All it does is play a sound when the user enters the page. The sound you specify is played each time they enter the page, for example if they pressed the "Back" button to return to the page.

It plays only once. In order to hear it again, go back and reenter this page.


Downloading and Using PlaySound

To use the applet: download it, place it in an appropriate location and add the applet tag to your document.

Make sure the file PlaySound.class after downloading is 1,123 bytes in size. Also make sure your server is configured to serve .class files as MIME type application/octet-stream.

People typically place applets in a classes directory at the same level as the HTML document for which the applet is being served from. This implies configuring the applet tag with a value of codebase equal to classes and code as PlaySound.

The applet tag for the above applet looks like:

  <applet codebase="classes" code="PlaySound" width=1 height=1>
  <param name=sound value="classes/zzzz.au">
  </applet>
The audio file should be a Sun u-Law type of recording.


Feedback

Let me know where you are using the applet so I can set up a page of links. Questions or comments to: John Criswick by e-mail to
criswick@conveyor.com.

This applet is Freeware, no warranty is implied in any sense. Use at your own risk

The Internet Conveyor Ltd.