C# Класс 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.
Наследование: System.Windows.Forms.UserControl, IThreadRunnable
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
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.

Приватные методы

Метод Описание
javazoom ( System sender, System e ) : void

Описание методов

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

PlayerApplet() публичный Метод

public PlayerApplet ( ) : System
Результат System

Run() публичный Метод

The run method for the audio player thread. Simply calls play() on the player to play the entire stream.
public Run ( ) : void
Результат void

createPlayerThread() защищенный Метод

Creates a new thread used to run the audio player.
protected createPlayerThread ( ) : SupportClass.ThreadClass
Результат SupportClass.ThreadClass

getParameter() публичный Метод

public getParameter ( System paramName ) : String
paramName System
Результат String

init() публичный Метод

Initializes this applet.
public init ( ) : void
Результат void

isActive() публичный Метод

public isActive ( ) : bool
Результат bool

play() защищенный Метод

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
Результат void

start() публичный Метод

Starts this applet. An input stream and audio device are created and passed to the play() method.
public start ( ) : void
Результат void

stop() публичный Метод

Stops this applet. If audio is currently playing, it is stopped.
public stop ( ) : void
Результат void

stopPlayer() защищенный Метод

Stops the audio player. If the player is already stopped this method is a no-op.
protected stopPlayer ( ) : void
Результат void