JavaSonics

SDK

Documentation


Web Home

SDK Home

Docs

Test PHP

Test ASP

Test ASP.NET

Examples

Demos

Download

Purchase

Support

Forum

Login

Contact Us

Company


JavaSonics ListenUp is no longer for sale.

Embedding ListenUp Player in a Web Page

This 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 Tag

You 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:

  • Use the JavaSonicsListenUp.jar file to play samples using the PlayerApplet.
    Or use the ListenUpTranscriber.jar file instead if you want to enable the transcription features such as the footpedal or the fast forward and rewind buttons.
  • The OggXiphSpeexJS.jar file in the archive is only needed if you plan to record or play back Speex compressed files.

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 Code

The 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:
  1. JAR files from "listenup/codebase" .  Note their location relative to the HTML page containing the PlayerApplet (see codebase comment above).
  2. CGI server scripts to receive the uploaded file. We provide examples written using PHP and JSP. You will need to write new scripts specific to your web site.
[Top] [Previous] [Next]

© 2001-2006 Mobileer, Inc.   This page is from the ListenUp SDK. You can download the SDK from here.