public static class JMediaPlayer.ListenerAdapter extends java.lang.Object implements JMediaPlayer.IListener
ListenerAdapter
- JMediaPlayer.IListener
adapter.Constructor and Description |
---|
ListenerAdapter()
Constructor.
|
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 .. |
public void onEvent(java.lang.String event, java.lang.Object info)
JMediaPlayer.IListener
onEvent
in interface JMediaPlayer.IListener
public void onPlaybackStart(java.lang.String source, boolean remote)
JMediaPlayer.IListener
onPlaybackStart
in interface JMediaPlayer.IListener
source
- source idremote
- true
for the remote source; otherwise false
public void onTracks(MediaTrackInfo[] tracks, MediaTrackInfo[] all)
JMediaPlayer.IListener
onTracks
in interface JMediaPlayer.IListener
tracks
- tracks decodable by the SDKall
- all trackspublic void onTrackEnd(MediaTrackInfo track)
JMediaPlayer.IListener
onTrackEnd
in interface JMediaPlayer.IListener
public void onAudioFrame(AudioFrame frame)
JMediaPlayer.IListener
frame
..onAudioFrame
in interface JMediaPlayer.IListener
frame
- audio framepublic void onVideoFrame(VideoFrame frame, int[] frameCropOffset)
JMediaPlayer.IListener
frame
..onVideoFrame
in interface JMediaPlayer.IListener
frame
- video frameframeCropOffset
- frame crop offset (0 - top, 1 - left, 2 - bottom, 3 - right),
if null
then all offsets are zeropublic void onPlaybackStop(java.lang.String source, boolean remote)
JMediaPlayer.IListener
onPlaybackStop
in interface JMediaPlayer.IListener
source
- source idremote
- true
for the remote source; otherwise false