_REF
VideoBase: base for implementing a video reader
Bases: pymt.event.EventDispatcher
VideoBase, a class to implement a video reader.
Warning
For this object, you need to call update() yourself to let the engine update the video texture before calling draw().
| Parameters : |
|
|---|---|
| Events : |
|
Draw the current video on screen
Get the video duration (in seconds)
Get/set the filename/uri of current video
Load the video from the current filename
Play the video
Get/set the position in the video (in seconds)
Move on percent position
Get the video playing status
Stop the video playing
Get the video texture
Unload the actual video
Update the video content to texture. Must be called every frame, before draw.
Get/set the volume in the video (1.0 = 100%)