com.smaxe.uv.stream
Interface IMediaStream.IListener

All Known Implementing Classes:
IMediaStream.ListenerAdapter
Enclosing interface:
IMediaStream

public static interface IMediaStream.IListener

IListener - media stream listener.


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).
 

Method Detail

onAudioData

void onAudioData(MediaData data)
Notifies about a new audio frame (audio frame time is time relative to the previous audio frame).

Parameters:
data - audio data

onVideoData

void onVideoData(MediaData data)
Notifies about a new video frame (video frame time is time relative to the previous video frame).

Parameters:
data - video data

onNotify

void onNotify(java.lang.Object data)
Notifies about the stream's metadata notification.

Parameters:
data - meta data or notification

onEnd

void onEnd(long timestamp)
Notifies about the end of the stream.

Parameters:
timestamp - time (in milliseconds since stream start)

onException

void onException(long timestamp,
                 java.lang.Exception e)
Notifies about the occured exception.

Parameters:
timestamp - time (in milliseconds since stream start)
e - thrown exception

onTimeout

void onTimeout(long timestamp,
               long timeout)
Notifies about the stream timeout, i.e. audio/video/meta data is not received for timeout milliseconds.

Parameters:
timestamp - time (in milliseconds since stream start)
timeout - timeout (in milliseconds since last frame is received)