javazoom.jl.player
public class PlayerApplet extends Applet implements Runnable
Since: 0.0.8
Field Summary | |
---|---|
static String | AUDIO_PARAMETER |
Method Summary | |
---|---|
protected Thread | createPlayerThread()
Creates a new thread used to run the audio player. |
void | destroy() |
protected AudioDevice | getAudioDevice()
Retrieves the AudioDevice instance that will
be used to sound the audio data.
|
protected String | getAudioFileName() |
protected InputStream | getAudioStream()
Retrieves the InputStream that provides the MPEG audio
stream data.
|
protected URL | getAudioURL() |
String | getFileName() |
void | init()
Initializes this applet. |
protected void | play(InputStream in, AudioDevice dev)
Decompresses audio data from an InputStream and plays it
back through an AudioDevice. |
void | run()
The run method for the audio player thread. |
void | setFileName(String name)
Sets the URL of the audio stream to play. |
void | start()
Starts this applet. |
void | stop()
Stops this applet. |
protected void | stopPlayer()
Stops the audio player. |
Returns: A new Thread that, once started, runs the audio player.
AudioDevice
instance that will
be used to sound the audio data.
Returns: an audio device instance that will be used to sound the audio stream.
Returns: an InputStream from which the MPEG audio data is read, or null if an error occurs.
Parameters: in The InputStream that provides the MPEG audio data. dev The AudioDevice to use to sound the decompressed data.
Throws: JavaLayerException if there was a problem decoding or playing the audio data.