public interface BasicPlayerListener
| Modifier and Type | Method and Description |
|---|---|
void |
opened(Object stream,
Map properties)
Open callback, stream is ready to play.
|
void |
progress(int bytesread,
long microseconds,
byte[] pcmdata,
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(Object stream, Map properties)
stream - could be File, URL or InputStreamproperties - audio stream properties.void progress(int bytesread,
long microseconds,
byte[] pcmdata,
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 playerCopyright © 2016. All Rights Reserved.