-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spacebar Pause Doubling Pause #788
Comments
I added more info about this in this discord thread: https://discord.com/channels/742612686679965696/1082046652992467024 |
Fixed on chrome, cannot try on edge, but the issue still persists on macos safari fullscreen. I know macos safari do not provide any default keyboard shortcuts for inline videos, but they do provide them for fullscreen. I marked this pull request #789 as closed, but I know that it fixes it on fullscreen safari and does not break chrome, although I do not know if it breaks anything on other browsers. |
For now I'd recommend disabling keyboard shortcuts if you're using native controls like so: <media-player key-disabled> I think we'll just automatically disable it if |
The problem for that is if the user is in inline video mode, they will have no controls and will be missing a few controls in fullscreen mode since WebKit does not inject that many shortcuts. As mentioned previously, this pr #789 fixes the aforementioned problem. Allowing for vidstack's custome keyboard shortcuts without interfering with the default shortcuts. |
We can't blanket stop propagation of all trigger events because they don't belong to us, they could be provided by the user and we shouldn't stop UI events either. I see what you're saying. The keyboard shortcuts weren't intended for use with native controls but I've also noticied native shortcuts are very limited. I'll have another review of this and see what we can do, tricky part is we can't tell which shortcuts are supported by which browser without manual testing and that could change any day. |
I see what you mean. That's something I haven't thought of. Sorry for pushing a faulty fix so much.
If you need any help on this, you can contact me on discord and I'll try and help |
Current Behavior:
When using safari an chromium (Edge and Chrome, not tested on others) fullscreen api pausing a video while in fullscreen pauses the video by default. The new keybinds calls
pause = !pause
again making the video play again.Expected Behavior:
Either
e.preventDefault()
ore.stopPropagation()
(Not Tested),or check for
to pause only when not in fullscreen when pressing spacebar.
Steps To Reproduce:
(Prereqs: Rust + Node + Yarn)
yarn install
yarn dev
(Opens up a new window that uses Edge on Windows and Safari on MacOS)This runs on
http://localhost:5173/
which allows you to follow steps 4-7 on any browser you wish.Environment:
Anything Else?
2023-03-05.00-06-02.mp4
After hitting play with the mouse, I press spacebar multiple times to pause, but the video pauses and unpauses.
The text was updated successfully, but these errors were encountered: