com.smaxe.uv.client
Interface IVideo

All Known Implementing Classes:
AbstractVideo, EmptyVideo, FlvVideo

public interface IVideo

IVideo - video object.

Version:
1.5.12
Author:
Andrei Sochirca
See Also:
JUV RTMP Client

Method Summary
 double bufferLength()
          Returns the number of seconds of data currently in the buffer.
 long bytesLoaded()
          Returns the number of bytes of data that have been loaded.
 long bytesTotal()
          Returns the total size in bytes of the file being loaded.
 void clear()
          Clears video state.
 void clearPlayBuffer()
          Clears video play buffer.
 double fps()
          Returns current fps.
 double liveDelay()
          Returns the number of seconds of data in the subscribing stream's buffer in live (unbuffered) mode.
 void onAudioData(MediaData data)
          Notifies about available audio frame.
 void onCuePoint(java.lang.Object data)
          Notifies about stream's cue point.
 void onFlvData(MediaData data)
          Notifies about available flv-data.
 void onMetaData(java.lang.Object data)
          Notifies about stream's metadata.
 void onSetDataFrame(java.lang.String method, java.lang.Object data)
          Notifies about "@setDataFrame" frame.
 void onVideoData(MediaData data)
          Notifies about available video frame.
 void reset()
          Resets video.
 double time()
          Returns the position of the playhead, in seconds.
 

Method Detail

bufferLength

double bufferLength()
Returns the number of seconds of data currently in the buffer.

Returns:
number of seconds of data currently in the buffer

bytesLoaded

long bytesLoaded()
Returns the number of bytes of data that have been loaded.

Returns:
number of bytes of data that have been loaded

bytesTotal

long bytesTotal()
Returns the total size in bytes of the file being loaded.

Returns:
total size in bytes of the file being loaded

fps

double fps()
Returns current fps.

Returns:
current FPS

liveDelay

double liveDelay()
Returns the number of seconds of data in the subscribing stream's buffer in live (unbuffered) mode.

Returns:
number of seconds of data in the subscribing stream's buffer in live (unbuffered) mode

time

double time()
Returns the position of the playhead, in seconds.

Returns:
position of the playhead, in seconds

clear

void clear()
Clears video state.


clearPlayBuffer

void clearPlayBuffer()
Clears video play buffer.


reset

void reset()
Resets video.


onAudioData

void onAudioData(MediaData data)
Notifies about available audio frame.

Note: This method should be really quick.

Parameters:
data - audio data frame

onVideoData

void onVideoData(MediaData data)
Notifies about available video frame.

Note: This method should be really quick.

Parameters:
data - video data frame

onFlvData

void onFlvData(MediaData data)
Notifies about available flv-data.

Note: This method should be really quick.

Parameters:
data -

onCuePoint

void onCuePoint(java.lang.Object data)
Notifies about stream's cue point.

Note: This method should be really quick.

Parameters:
data - cue-point data

onMetaData

void onMetaData(java.lang.Object data)
Notifies about stream's metadata.

Note: This method should be really quick.

Parameters:
data - meta-data

onSetDataFrame

void onSetDataFrame(java.lang.String method,
                    java.lang.Object data)
Notifies about "@setDataFrame" frame.

Note: This method should be really quick.

Parameters:
method - method
data - meta-data