class documentation

class Video(video.Video):

View In Hierarchy

Handle video output on the device.

Methods

  • play()
    Blocking video playback.
  • start()
    Start video playback asynchronously.
  • run()
    Run a video playback frame.
Parameters
pathPath to the video file.
xX-coordinate for video display. Default is 0.
yY-coordinate for video display. Default is 0.
scaleScale factor for the video display. Default is 1.0.
Instance Variable - active Indicates if the video is currently active.
Instance Variable - fps Frames per second of the video.
Instance Variable - frame Current frame index of the video.
Instance Variable - frames Total number of frames in the video.
Instance Variable - height Height of the video display.
Instance Variable - path Path to the video file.
Instance Variable - width Width of the video display.
- active: bool =

Indicates if the video is currently active.

- fps: float =

Frames per second of the video.

- frame: int =

Current frame index of the video.

- frames: int =

Total number of frames in the video.

- height: int =

Height of the video display.

- path: str =

Path to the video file.

- width: int =

Width of the video display.