Stop listening to media control keys after media reaches to the end
Categories
(Core :: Audio/Video: Playback, task, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox81 | --- | fixed |
People
(Reporter: alwu, Assigned: alwu)
References
Details
Attachments
(4 files)
While testing the behaviors of media control, I found that Chrome would stop listening to media control keys after the media reaches to the end.
The advantage of doing so is that, we can ensure that we won't intefere other applications because we have stopped listening to the media control keys which means abandoning the "audio focus" on the platform. And we can also remove the timer [1] related code to make our usage simpler and solve the issue for notification sound issue (we don't want the notification sound to intefere other applications).
The disadvantage is that, we are not able to control media via media control keys once it reaches to the end. User have to manually start media via mouse clicking or keyborad pressing to start media from the control interface website provides. However, I don't really know how many people would want to control media via our media control after media reaches to the end. If no one is needing that, we should probably follow Chrome's behavior.
Comment 1•5 years ago
|
||
I could imagine some scenarios where the video has ended and you want to restart it via keys (thinking educational videos or music). But I'm not sure that users would know for how long we allow them to do that, or why it sometimes would work for them (if they were inside that time window). It might be better to follow Chrome in this case (imo).
Assignee | ||
Comment 2•5 years ago
|
||
Assignee | ||
Comment 3•5 years ago
|
||
Assignee | ||
Comment 4•5 years ago
|
||
Assignee | ||
Comment 5•5 years ago
|
||
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
![]() |
||
Comment 7•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/19a0d1ad43cf
https://hg.mozilla.org/mozilla-central/rev/5640e25c2d1d
https://hg.mozilla.org/mozilla-central/rev/5acecd538004
https://hg.mozilla.org/mozilla-central/rev/7df4a30f6382
Description
•