Reuse the same MediaControlKeysEventSource but use `open()` and `close()` to control monitoring media key events
Categories
(Core :: Audio/Video: Playback, task, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox73 | --- | fixed |
People
(Reporter: alwu, Assigned: alwu)
References
Details
Attachments
(2 files)
Fork from [1].
Assignee | ||
Comment 1•6 years ago
|
||
Assignee | ||
Comment 2•6 years ago
|
||
Because we won't change platform dynamically, so we should be able to keep same the event source all the time and use Open()
and Close()
to control if we need to monitor media keys event or not.
Comment 3•6 years ago
|
||
In theory, we could start to apply this to the Mac Event Source, by only enabling/disabling the tap in Open/Close and leave the init to the constructor (or do it in the first open call, then we can return a failure).
However I think we need to change the Mac Code in a further iteration anyway, as there is https://developer.apple.com/documentation/mediaplayer/becoming_a_now_playable_app, which seems to be the equivalent to the other two desktop APIs (Now Playing Info = Metadata, Remote Command Center Actions = Mediakeys?).
Assignee | ||
Comment 4•6 years ago
|
||
(In reply to Marc Streckfuß [:MeFisto94] from comment #3)
However I think we need to change the Mac Code in a further iteration anyway, as there is https://developer.apple.com/documentation/mediaplayer/becoming_a_now_playable_app, which seems to be the equivalent to the other two desktop APIs (Now Playing Info = Metadata, Remote Command Center Actions = Mediakeys?).
That will be implemented in bug 1591230, which will be landed soon.
Comment 6•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/f9eb0ac18a3b
https://hg.mozilla.org/mozilla-central/rev/1fb1ca98f23b
Description
•