public static class IMediaStream.ListenerAdapter extends java.lang.Object implements IMediaStream.IListener
ListenerAdapter
- IMediaStream.IListener
adapter.Constructor and Description |
---|
IMediaStream.ListenerAdapter()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
onAudioData(MediaData data)
Notifies about a new audio frame (audio frame time is time relative
to the previous audio frame).
|
void |
onEnd(long timestamp)
Notifies about the end of the stream.
|
void |
onException(long timestamp,
java.lang.Exception e)
Notifies about the occured exception.
|
void |
onNotify(java.lang.Object data)
Notifies about the stream's metadata notification.
|
void |
onTimeout(long timestamp,
long timeout)
Notifies about the stream timeout, i.e.
|
void |
onVideoData(MediaData data)
Notifies about a new video frame (video frame time is time relative
to the previous video frame).
|
void |
release() |
public void onAudioData(MediaData data)
IMediaStream.IListener
onAudioData
in interface IMediaStream.IListener
data
- audio datapublic void onVideoData(MediaData data)
IMediaStream.IListener
onVideoData
in interface IMediaStream.IListener
data
- video datapublic void onNotify(java.lang.Object data)
IMediaStream.IListener
onNotify
in interface IMediaStream.IListener
data
- meta data or notificationpublic void onEnd(long timestamp)
IMediaStream.IListener
onEnd
in interface IMediaStream.IListener
timestamp
- time (in milliseconds since stream start)public void onException(long timestamp, java.lang.Exception e)
IMediaStream.IListener
onException
in interface IMediaStream.IListener
timestamp
- time (in milliseconds since stream start)e
- thrown exceptionpublic void onTimeout(long timestamp, long timeout)
IMediaStream.IListener
timeout
milliseconds.onTimeout
in interface IMediaStream.IListener
timestamp
- time (in milliseconds since stream start)timeout
- timeout (in milliseconds since last frame is received)public void release()