Package libavg :: Module avg :: Class Video

Class Video




Video nodes display a video file. Video formats and codecs supported are all formats that ffmpeg/libavcodec supports.

Instance Methods
 
getCurFrame()
Returns the video frame currently playing.
 
getNumFrames()
 
seekToFrame(num)
Moves the playback cursor to the frame given.
 
setEOFCallback(pyfunc)
Sets a python callable to be invoked when the video reaches end of file.

Inherited from VideoBase: getFPS, pause, play, stop

Inherited from RasterNode: getBitmap, getOrigVertexCoords, getWarpedVertexCoords, setWarpedVertexCoords

Inherited from Node: __init__, getParent, getRelPos, releaseEventCapture, setEventCapture, setEventHandler

Inherited from unreachable.instance: __new__

Inherited from object: __delattr__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties
  href
The source filename of the video (ro).
  loop
Whether to start the video again when it has ended (ro).

Inherited from RasterNode: angle, blendmode, maxtileheight, maxtilewidth, pivotx, pivoty

Inherited from Node: active, height, id, opacity, sensitive, width, x, y

Inherited from object: __class__

Property Details

href

The source filename of the video (ro).
Get Method:
unreachable(...)
Set Method:
unreachable(...)

loop

Whether to start the video again when it has ended (ro).
Get Method:
unreachable(...)