public static interface IMediaStream.IListener
IListener
- media stream listener.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 onAudioData(MediaData data)
data
- audio datavoid onVideoData(MediaData data)
data
- video datavoid onNotify(java.lang.Object data)
data
- meta data or notificationvoid onEnd(long timestamp)
timestamp
- time (in milliseconds since stream start)void onException(long timestamp, java.lang.Exception e)
timestamp
- time (in milliseconds since stream start)e
- thrown exceptionvoid onTimeout(long timestamp, long timeout)
timeout
milliseconds.timestamp
- time (in milliseconds since stream start)timeout
- timeout (in milliseconds since last frame is received)