|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.smaxe.uv.client.video.AbstractVideo
public abstract class AbstractVideo
AbstractVideo
- abstract IVideo
.
Constructor Summary | |
---|---|
AbstractVideo()
Constructor. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractVideo()
Method Detail |
---|
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
fps
in interface IVideo
public double liveDelay()
IVideo
liveDelay
in interface IVideo
public double time()
IVideo
time
in interface IVideo
public void clear()
IVideo
clear
in interface IVideo
public void clearPlayBuffer()
IVideo
clearPlayBuffer
in interface IVideo
public void reset()
IVideo
reset
in interface 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.
onFlvData
in interface IVideo
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |