Calling default action handler for `pause/stop` on those windows which doesn't have active action handlers or its media session is not active
Categories
(Core :: Audio/Video: Playback, task, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox82 | --- | fixed |
People
(Reporter: alwu, Assigned: alwu)
References
Details
Attachments
(8 files, 2 obsolete files)
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review |
Fork from bug1633565 comment1, within a page, we should treat each frame differently and call the default action handler for pause
and stop
if that frame doesn't have active media session or the active media session doesn't have a handler for pause
or stop
.
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 1•5 years ago
|
||
Assignee | ||
Comment 2•5 years ago
|
||
Assignee | ||
Comment 3•5 years ago
|
||
Assignee | ||
Comment 4•5 years ago
|
||
Assignee | ||
Comment 5•5 years ago
|
||
Assignee | ||
Comment 6•5 years ago
|
||
Assignee | ||
Comment 7•5 years ago
|
||
Assignee | ||
Comment 8•5 years ago
|
||
Assignee | ||
Comment 9•5 years ago
|
||
We determine which media session is active media session in chrome process, but the media session in content process doesn't know the detail.
This patch would store the active session context Id on the top level WindowContext, so that media session in content process can know if it's an active context or not, which helps to trigger the action handler only on active media session, after changing our propagation mechanism in following patches.
Updated•5 years ago
|
Assignee | ||
Comment 10•5 years ago
|
||
play
default handler is a special case, we don't want to run it arbitrarily in order to get a better user experience.
If we have an active media session, the play should only be triggered on that session, which is something a user really wants to resume. Therefore, adding some restrictions to call default play handler only when
(1) We don't have an active media session (If we have one, the play action handler should only be triggered on that session)
(2) Active media session without setting action handler for play
Updated•5 years ago
|
Comment 11•5 years ago
|
||
Comment 12•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/68883ad72bf2
https://hg.mozilla.org/mozilla-central/rev/a29128465e05
https://hg.mozilla.org/mozilla-central/rev/4df5c6612e88
https://hg.mozilla.org/mozilla-central/rev/5560c478b424
https://hg.mozilla.org/mozilla-central/rev/a5f8ee649ac8
https://hg.mozilla.org/mozilla-central/rev/fd7852d71376
https://hg.mozilla.org/mozilla-central/rev/d8b735f11b4b
https://hg.mozilla.org/mozilla-central/rev/e1cf0bdac6b6
Description
•