public abstract class AbstractVideo extends java.lang.Object implements IVideo
AbstractVideo - abstract IVideo.| Constructor and Description |
|---|
AbstractVideo()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public double bufferLength()
IVideobufferLength in interface IVideopublic long bytesLoaded()
IVideobytesLoaded in interface IVideopublic long bytesTotal()
IVideobytesTotal in interface IVideopublic double fps()
IVideopublic double liveDelay()
IVideopublic double time()
IVideopublic void clear()
IVideopublic void clearPlayBuffer()
IVideoclearPlayBuffer in interface IVideopublic void reset()
IVideopublic void onAudioData(MediaData data)
IVideoNote: This method should be really quick.
onAudioData in interface IVideodata - audio data framepublic void onVideoData(MediaData data)
IVideoNote: This method should be really quick.
onVideoData in interface IVideodata - video data framepublic void onFlvData(MediaData data)
IVideoNote: This method should be really quick.
public void onCuePoint(java.lang.Object data)
IVideoNote: This method should be really quick.
onCuePoint in interface IVideodata - cue-point datapublic void onMetaData(java.lang.Object data)
IVideoNote: This method should be really quick.
onMetaData in interface IVideodata - meta-datapublic void onSetDataFrame(java.lang.String method,
java.lang.Object data)
IVideoNote: This method should be really quick.
onSetDataFrame in interface IVideomethod - methoddata - meta-data