com.smaxe.uv.stream
Class IMediaStream.ListenerAdapter

java.lang.Object
  extended by com.smaxe.uv.stream.IMediaStream.ListenerAdapter
All Implemented Interfaces:
IMediaStream.IListener
Enclosing interface:
IMediaStream

public static class IMediaStream.ListenerAdapter
extends java.lang.Object
implements IMediaStream.IListener

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

IMediaStream.ListenerAdapter

public IMediaStream.ListenerAdapter()
Constructor.

Method Detail

onAudioData

public void onAudioData(MediaData data)
Description copied from interface: IMediaStream.IListener
Notifies about a new audio frame (audio frame time is time relative to the previous audio frame).

Specified by:
onAudioData in interface IMediaStream.IListener
Parameters:
data - audio data

onVideoData

public void onVideoData(MediaData data)
Description copied from interface: IMediaStream.IListener
Notifies about a new video frame (video frame time is time relative to the previous video frame).

Specified by:
onVideoData in interface IMediaStream.IListener
Parameters:
data - video data

onNotify

public void onNotify(java.lang.Object data)
Description copied from interface: IMediaStream.IListener
Notifies about the stream's metadata notification.

Specified by:
onNotify in interface IMediaStream.IListener
Parameters:
data - meta data or notification

onEnd

public void onEnd(long timestamp)
Description copied from interface: IMediaStream.IListener
Notifies about the end of the stream.

Specified by:
onEnd in interface IMediaStream.IListener
Parameters:
timestamp - time (in milliseconds since stream start)

onException

public void onException(long timestamp,
                        java.lang.Exception e)
Description copied from interface: IMediaStream.IListener
Notifies about the occured exception.

Specified by:
onException in interface IMediaStream.IListener
Parameters:
timestamp - time (in milliseconds since stream start)
e - thrown exception

onTimeout

public void onTimeout(long timestamp,
                      long timeout)
Description copied from interface: IMediaStream.IListener
Notifies about the stream timeout, i.e. audio/video/meta data is not received for timeout milliseconds.

Specified by:
onTimeout in interface IMediaStream.IListener
Parameters:
timestamp - time (in milliseconds since stream start)
timeout - timeout (in milliseconds since last frame is received)

release

public void release()