C# Class javazoom.jl.player.PlayerApplet

A simple applet that plays an MPEG audio file. The URL (relative to the document base) is passed as the "audioURL" parameter.
Inheritance: System.Windows.Forms.UserControl, IThreadRunnable
Exibir arquivo Open project: RHY3756547/FreeSO

Public Methods

Method Description
Dispose ( ) : void
PlayerApplet ( ) : System
Run ( ) : void

The run method for the audio player thread. Simply calls play() on the player to play the entire stream.

getParameter ( System paramName ) : String
init ( ) : void

Initializes this applet.

isActive ( ) : bool
start ( ) : void

Starts this applet. An input stream and audio device are created and passed to the play() method.

stop ( ) : void

Stops this applet. If audio is currently playing, it is stopped.

Protected Methods

Method Description
createPlayerThread ( ) : SupportClass.ThreadClass

Creates a new thread used to run the audio player.

play ( System @in, AudioDevice dev ) : void

Decompresses audio data from an InputStream and plays it back through an AudioDevice. The playback is run on a newly created thread.

stopPlayer ( ) : void

Stops the audio player. If the player is already stopped this method is a no-op.

Private Methods

Method Description
javazoom ( System sender, System e ) : void

Method Details

Dispose() public method

public Dispose ( ) : void
return void

PlayerApplet() public method

public PlayerApplet ( ) : System
return System

Run() public method

The run method for the audio player thread. Simply calls play() on the player to play the entire stream.
public Run ( ) : void
return void

createPlayerThread() protected method

Creates a new thread used to run the audio player.
protected createPlayerThread ( ) : SupportClass.ThreadClass
return SupportClass.ThreadClass

getParameter() public method

public getParameter ( System paramName ) : String
paramName System
return String

init() public method

Initializes this applet.
public init ( ) : void
return void

isActive() public method

public isActive ( ) : bool
return bool

play() protected method

Decompresses audio data from an InputStream and plays it back through an AudioDevice. The playback is run on a newly created thread.
protected play ( System @in, AudioDevice dev ) : void
@in System
dev AudioDevice
return void

start() public method

Starts this applet. An input stream and audio device are created and passed to the play() method.
public start ( ) : void
return void

stop() public method

Stops this applet. If audio is currently playing, it is stopped.
public stop ( ) : void
return void

stopPlayer() protected method

Stops the audio player. If the player is already stopped this method is a no-op.
protected stopPlayer ( ) : void
return void