plyr
plyr copied to clipboard
Spacebar does not play/pause video on Plyr.io
Hitting a spacebar does not pause/resume playback when trying on https://plyr.io
Expected behaviour
When hitting spacebar, video should pause/resume
Actual behaviour
Nothing happens
Steps to reproduce
- Go to https://plyr.io
- Click the video to start playback
- Press spacebar
Environment
- Browsers: Safari 15.6 on macOS (Monterey) Chrome 109 on macOS (Monterey) Opera 94 on macOS (Monterey) Chrome on Windows 10 Edge on Windows 10
Link to where the bug is happening
https://plyr.io
Notes
All the keyboard shortcuts work as expected except the spacebar. I can switch a full screen or control the volume level but I can't play/pause the video with the spacebar.
For anyone looking at this issue. Should be fixed by this PR: https://github.com/sampotts/plyr/pull/2581
Why Am I able to control fullscreen when I press the space button? Is there any way to uninstall this binding? I think users will naturally associate space with pauses after clicking the fullscreen button?