|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.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.IListenerdata - audio datapublic void onVideoData(MediaData data)
IMediaStream.IListener
onVideoData in interface IMediaStream.IListenerdata - video datapublic void onNotify(java.lang.Object data)
IMediaStream.IListener
onNotify in interface IMediaStream.IListenerdata - meta data or notificationpublic void onEnd(long timestamp)
IMediaStream.IListener
onEnd in interface IMediaStream.IListenertimestamp - time (in milliseconds since stream start)
public void onException(long timestamp,
java.lang.Exception e)
IMediaStream.IListener
onException in interface IMediaStream.IListenertimestamp - time (in milliseconds since stream start)e - thrown exception
public void onTimeout(long timestamp,
long timeout)
IMediaStream.IListenertimeout milliseconds.
onTimeout in interface IMediaStream.IListenertimestamp - 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 | ||||||||