-
Notifications
You must be signed in to change notification settings - Fork 29
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
"When the user presses the MediaTrackPrevious me..." #56
Comments
This relates to the discussion starting at #21 (comment).
Ideally For platforms that do currently fire multimedia key events we have three options:
The other proposal is to fire media session events after keyboard events: Of the three options, my preference would be on (2). Once we know the order we want to fire these events (or if we want to continue firing multimedia key events as input events at all) I think we can start to look at the event timing/ordering text we need to add to the spec. |
There are a few open issues around remote controls: w3c#11 w3c#21 w3c#42 w3c#45 w3c#56 In particular issue 45 will change this API a lot, so in order to not tempt implementors into going with this design, remove it for now. Much of this, in particular the prose and example, can be revived once we have the time to hammer out the flattened API design.
We need implementer feedback on this. I'm not sure what the timing should be and whether cancelling a key event should block the media session action. At the moment, Chrome did not implement an action that is also a key event so I prefer not to write something in the spec without any implementation feedback. |
@jernoble, there's some chance you'll be the first to try to tie actions to keys on a keyboard, any thoughts? FWIW, I can see two relative sane options:
|
Ping @jernoble? |
AFAICT, I don't think that the media buttons will ever generate key events on Mac platforms. That they're on the keyboard (on non-Touch Bar Macs) is coincidental. |
I think @jernoble comment still holds on Apple platforms. |
Closing, given the spec has been rewritten to no longer talk about key press and so on. |
https://mediasession.spec.whatwg.org/#mediaremotecontrols-event-handlers
How should this happen relative to the task that is already queued for pressing that key? Should it in fact all be part of the same task, or a set of tasks (what order?).
The text was updated successfully, but these errors were encountered: