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()
IVideo
bufferLength
in interface IVideo
public long bytesLoaded()
IVideo
bytesLoaded
in interface IVideo
public long bytesTotal()
IVideo
bytesTotal
in interface IVideo
public double fps()
IVideo
public double liveDelay()
IVideo
public double time()
IVideo
public void clear()
IVideo
public void clearPlayBuffer()
IVideo
clearPlayBuffer
in interface IVideo
public void reset()
IVideo
public void onAudioData(MediaData data)
IVideo
Note: This method should be really quick.
onAudioData
in interface IVideo
data
- audio data framepublic void onVideoData(MediaData data)
IVideo
Note: This method should be really quick.
onVideoData
in interface IVideo
data
- video data framepublic void onFlvData(MediaData data)
IVideo
Note: This method should be really quick.
public void onCuePoint(java.lang.Object data)
IVideo
Note: This method should be really quick.
onCuePoint
in interface IVideo
data
- cue-point datapublic void onMetaData(java.lang.Object data)
IVideo
Note: This method should be really quick.
onMetaData
in interface IVideo
data
- meta-datapublic void onSetDataFrame(java.lang.String method, java.lang.Object data)
IVideo
Note: This method should be really quick.
onSetDataFrame
in interface IVideo
method
- methoddata
- meta-data