public static interface JMediaPlayer.IListener
IListener
- media player listener.Modifier and Type | Method and Description |
---|---|
void |
onAudioFrame(AudioFrame frame)
Notifies about audio
frame .. |
void |
onEvent(java.lang.String event,
java.lang.Object info)
Notifies about general purpose event.
|
void |
onPlaybackStart(java.lang.String source,
boolean remote)
Notifies about playback start.
|
void |
onPlaybackStop(java.lang.String source,
boolean remote)
Notifies about playback stop.
|
void |
onTrackEnd(MediaTrackInfo track)
Notifies about track end.
|
void |
onTracks(MediaTrackInfo[] tracks,
MediaTrackInfo[] all)
Notifies about available tracks.
|
void |
onVideoFrame(VideoFrame frame,
int[] frameCropOffset)
Notifies about video
frame .. |
void onEvent(java.lang.String event, java.lang.Object info)
event
- info
- void onPlaybackStart(java.lang.String source, boolean remote)
source
- source idremote
- true
for the remote source; otherwise false
void onTracks(MediaTrackInfo[] tracks, MediaTrackInfo[] all)
tracks
- tracks decodable by the SDKall
- all tracksvoid onTrackEnd(MediaTrackInfo track)
track
- void onAudioFrame(AudioFrame frame)
frame
..frame
- audio framevoid onVideoFrame(VideoFrame frame, int[] frameCropOffset)
frame
..frame
- video frameframeCropOffset
- frame crop offset (0 - top, 1 - left, 2 - bottom, 3 - right),
if null
then all offsets are zerovoid onPlaybackStop(java.lang.String source, boolean remote)
source
- source idremote
- true
for the remote source; otherwise false