Add keyboard shortcuts

* spacebar: play/pause
* f: toggle full screen
* enter: focus chat
* horizontal arrows: +- 5s seek
* vertical arrows: +- volume
* m: mute
This commit is contained in:
Peter Stockings
2026-03-04 23:06:01 +11:00
parent 6a8dc7e5e6
commit d1a87e004e
2 changed files with 79 additions and 1 deletions

View File

@@ -16,7 +16,8 @@ class VLCSyncPlayer:
# Initialize VLC instance
# --no-xlib prevents crashes on Linux
# --drop-late-frames improves sync by not delaying playback when CPU is slow
self.instance = vlc.Instance("--no-xlib", "--drop-late-frames")
# --no-keyboard stops VLC from capturing and swallowing keyboard events
self.instance = vlc.Instance("--no-xlib", "--drop-late-frames", "--no-keyboard")
self.media_player = self.instance.media_player_new()
# Embed the VLC player into the provided PyQt QFrame