plyr icon indicating copy to clipboard operation
plyr copied to clipboard

Spacebar does not play/pause video on Plyr.io

Open benderillo opened this issue 1 year ago • 2 comments

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

  1. Go to https://plyr.io
  2. Click the video to start playback
  3. 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.

benderillo avatar Feb 05 '23 10:02 benderillo

For anyone looking at this issue. Should be fixed by this PR: https://github.com/sampotts/plyr/pull/2581

benderillo avatar Feb 05 '23 11:02 benderillo

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?

Kelier avatar Jul 20 '23 07:07 Kelier