Ensure MediaSession Delegate.onActivated is always dispatched first
Categories
(GeckoView :: Media, enhancement, P1)
Tracking
(firefox84 fixed)
Tracking | Status | |
---|---|---|
firefox84 | --- | fixed |
People
(Reporter: esawin, Assigned: esawin)
References
Details
Attachments
(1 file)
Currently, the MediaSession
delegate does not ensure the order of events dispatched, which may result in events like onPlay
to be dispatched before onActivated
.
Generally, the order of events should be controlled by Gecko, however, in the case of onActivated
, this has some unwanted side effects for the integration of the GV API with A-C media components.
Let's explore a solution to at least ensure that onActivated
is dispatched first.
Assignee | ||
Comment 1•5 years ago
|
||
Is there a reason for Gecko's MediaController
to dispatch playback and metadata events explicitly before the activated
event?
For now, we can work around this by synthesizing an onActivated
event in GV for each (non-fullscreen) event called on an inactive media session, but it seems odd that Gecko doesn't dispatch them in the expected order.
Assignee | ||
Comment 2•5 years ago
|
||
Comment 3•5 years ago
|
||
Thank for letting me know, will fix that in bug1673509.
Comment 5•5 years ago
|
||
bugherder |
Comment 6•3 years ago
|
||
Moving some media bugs to the new GeckoView::Media component.
Description
•