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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user