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
파일 보기 프로젝트 열기: RHY3756547/FreeSO

공개 메소드들

메소드 설명
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