javazoom.jlgui.basicplayer
public interface BasicPlayerListener
Modifier and Type | Method and Description |
---|---|
void |
opened(java.lang.Object stream,
java.util.Map properties)
Open callback, stream is ready to play.
|
void |
progress(int bytesread,
long microseconds,
byte[] pcmdata,
java.util.Map properties)
Progress callback while playing.
|
void |
setController(BasicController controller)
A handle to the BasicPlayer, plugins may control the player through
the controller (play, stop, ...)
|
void |
stateUpdated(BasicPlayerEvent event)
Notification callback for basicplayer events such as opened, eom ...
|
void opened(java.lang.Object stream, java.util.Map properties)
stream
- could be File, URL or InputStreamproperties
- audio stream properties.void progress(int bytesread, long microseconds, byte[] pcmdata, java.util.Map properties)
bytesread
- from encoded stream.microseconds
- elapsed (reseted after a seek !).pcmdata
- PCM samples.properties
- audio stream parameters.void stateUpdated(BasicPlayerEvent event)
event
- void setController(BasicController controller)
controller
- : a handle to the playerJavaZOOM 1999-2006