VideoConfiguration
VideoConfiguration
#
Additional configuration for video playback.
enable_hardware_acceleration: bool = True
#
Whether to enable hardware acceleration. When disabled, may cause battery drain, device heating, and high CPU usage.
hardware_decoding_api: Optional[str] = None
#
Sets the --hwdec property on native backend.
The default value is platform dependent
- Windows, GNU/Linux, macOS & iOS :
"auto"
- Android:
"auto-safe"
height: Optional[ft.Number] = None
#
The fixed height for the video output.
output_driver: Optional[str] = None
#
Sets the --vo property on native backend.
The default value is platform dependent
- Windows, GNU/Linux, macOS & iOS :
"libmpv"
- Android:
"gpu"
scale: ft.Number = 1.0
#
The scale for the video output.
Specifying this option will cause width
& height
to be ignored.
width: Optional[ft.Number] = None
#
The fixed width for the video output.