SDK |
Documentation |
JavaSonics ListenUp is no longer for sale.Embedding ListenUp Player in a Web PageThis page describes how to use the player Applet in a web page. The next page will describe how to use the recording Applet in a web page. YOUR HTML PAGE NEEDS: Java Applet TagYou can use an <APPLET> tag to run the ListenUp Applet. This section describes the various elements of an Applet tag. CODE: To play audio, use code="com.softsynth.javasonics.recplay.PlayerApplet" CODEBASE: The codebase value points to the directory where the jar files are located, relative to the HTML page. You can place the JAR file anywhere you like as long as the codebase parameter points to it correctly. ARCHIVE:
NAME: This name is used if you call the ListenUp Applet from JavaScript. WIDTH, HEIGHT: These must be large enough to show all the buttons. Note that buttons on Mac OS X may be bigger than on Windows. The Applet features are controlled using <param> tags, which are explained in detail later. Example Player HTML CodeThe parts you are likely to change are in red. <applet code="com.softsynth.javasonics.recplay.PlayerApplet" codebase="../codebase" archive="JavaSonicsListenUp.jar" name="ListenUpPlayer" width="400" height="120"> <!-- Play immediately without waiting for button press. --> <param name="autoPlay" value="yes"> <!-- Play the file at this URL. --> <param name="sampleURL" value="welcome.wav"> </applet> Click Here to see a Simple Player Example!YOUR WEB SITE ALSO NEEDS:
|