|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.smaxe.uv.stream.IMediaStream.ListenerAdapter
public static class IMediaStream.ListenerAdapter
ListenerAdapter
- IMediaStream.IListener
adapter.
Constructor Summary | |
---|---|
IMediaStream.ListenerAdapter()
Constructor. |
Method Summary | |
---|---|
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. audio/video/meta data is not received for timeout milliseconds. |
void |
onVideoData(MediaData data)
Notifies about a new video frame (video frame time is time relative to the previous video frame). |
void |
release()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IMediaStream.ListenerAdapter()
Method Detail |
---|
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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |