SDK |
Documentation |
JavaSonics ListenUp is no longer for sale.Embedding ListenUp Recorder in a Web Page.This page describes how to use the recorder Applet in a web page. It is based on the previous page which describes how to use the player Applet so you should read that first. YOUR HTML PAGE NEEDS: First set up your page as you did for the PlayerApplet. Changes to 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 record audio then use code="com.softsynth.javasonics.recplay.RecorderUploadApplet". ARCHIVE: Use the JavaSonicsListenUp.jar file if you want to record audio using the RecorderApplet or the RecorderUploadApplet. It is a signed JAR file that will put up a security dialog on Apple or when using the Sun Java plugin. If the user grants permission then the record audio feature will be enabled. The OggXiphSpeexJS.jar file in the archive is only needed if you plan to record or play back Speex compressed files. Example Recorder HTML CodeThe parts you are likely to change are in red. <applet code="com.softsynth.javasonics.recplay.RecorderUploadApplet" codebase="../codebase" archive="JavaSonicsListenUp.jar,OggXiphSpeexJS.jar" name="ListenUpRecorder" width="500" height="240"> <!-- URL for the script which receives the uploaded sound file. --> <param name="uploadURL" value="handle_upload_simple.php"> <!-- Name of uploaded sound file. Server can change it if needed. --> <param name="uploadFileName" value="whatever.wav"> Click Here for a Simple Recording Example![Top] [Previous] [Next] |