|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IPlayerListener
Listens for events produced by the PlayerService
. Events are invoked
in the message handler loop.
Method Summary | |
---|---|
void |
buffered(byte percent)
How much data is currently buffered. |
void |
radioNewTrack(String name)
Track was switched while a radio is playing. |
void |
started(String file,
int duration,
int currentPosition)
Player started to play the song. |
void |
stopped(String error,
boolean errorMissing,
TrackOriginEnum origin)
The playback was stopped (not paused). |
Method Detail |
---|
void stopped(String error, boolean errorMissing, TrackOriginEnum origin)
The playback was stopped (not paused). This may be caused by:
but never by
IPlayer.stop()
invocation
error
- if not null
then the player stopped because of an
unspecified error.errorMissing
- if true
then the error occurred because the file
is missing.origin
- the track originvoid started(String file, int duration, int currentPosition)
file
- the fileduration
- the file duration in ms. May be 0 if the stream is endless or
the duration is not known.currentPosition
- current playback position, in ms.void radioNewTrack(String name)
name
- the new track name.void buffered(byte percent)
percent
- how much the buffer is filled up. 0-100.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |