RESOLVED FIXED200511
Muted <video> elements can block display from sleeping.
https://bugs.webkit.org/show_bug.cgi?id=200511
Summary Muted <video> elements can block display from sleeping.
Jer Noble
Reported 2019-08-07 11:36:46 PDT
Muted <video> elements can block display from sleeping.
Attachments
Patch (4.11 KB, patch)
2019-08-07 11:38 PDT, Jer Noble
no flags
Radar WebKit Bug Importer
Comment 1 2019-08-07 11:37:46 PDT
Jer Noble
Comment 2 2019-08-07 11:38:02 PDT
WebKit Commit Bot
Comment 3 2019-08-07 14:12:11 PDT
Comment on attachment 375724 [details] Patch Clearing flags on attachment: 375724 Committed r248387: <https://trac.webkit.org/changeset/248387>
WebKit Commit Bot
Comment 4 2019-08-07 14:12:12 PDT
All reviewed patches have been landed. Closing bug.
Alexey Proskuryakov
Comment 5 2019-08-08 10:14:32 PDT
This sounds like it was correct behavior. When I'm watching a video, the display should not sleep. Whether I decided to mute audio is irrelevant.
Jer Noble
Comment 6 2019-08-08 10:27:17 PDT
(In reply to Alexey Proskuryakov from comment #5) > This sounds like it was correct behavior. When I'm watching a video, the > display should not sleep. Whether I decided to mute audio is irrelevant. It most definitely was not correct. We have no concept of whether the user is "watching" a video. You might make the argument that a video that started out not-muted and was muted with a user gesture should not cause the display from sleeping, but we would also have to add "is the video visible in the viewport" to that requirement, to keep a user-muted video which was scrolled offscreen from keeping the display awake.
Jon Lee
Comment 7 2019-08-08 10:31:22 PDT
Do we treat a muted video and the whole system sound muted the same?
Alexey Proskuryakov
Comment 8 2019-08-08 11:27:33 PDT
> It most definitely was not correct. We have no concept of whether the user is "watching" a video. If we have no such concept, then we must assume that the user is watching it. My understanding is that after this change, any video that I'm watching muted (like a Netflix or YouTube video, whether windowed of fullscreen) will eventually go dark. That's obviously an incorrect behavior. And there are tons of reasons why one may not want sound.
Jer Noble
Comment 9 2019-08-08 14:30:11 PDT
(In reply to Alexey Proskuryakov from comment #8) > > It most definitely was not correct. We have no concept of whether the user is "watching" a video. > > If we have no such concept, then we must assume that the user is watching it. No, that's absolutely not true. When trading off a very narrow use case vs. the potential to completely drain the users' battery, we must /not/ assume that the user is watching it.
Alexey Proskuryakov
Comment 10 2019-08-08 14:44:38 PDT
You are saying that muting is a narrow use case. That is equivalent to claiming that every video player in the world is wrong, as they give this functionality a prominent spot in their UI. They must have found that their users want that and use that! It could be that you are right, and everyone else is wrong, but you would need much better evidence for that than strong words. I agree that there may be an opportunity to further improve battery life if we can identify unwanted videos that play like this and drain the battery. The current patch doesn't implement any insightful heuristics, and outright breaking muted playback is clearly unacceptable in my opinion. As it stands now, is there any benefit in keeping the patch in the tree?
Jer Noble
Comment 11 2019-08-08 15:41:11 PDT
(In reply to Alexey Proskuryakov from comment #10) > You are saying that muting is a narrow use case. That is equivalent to > claiming that every video player in the world is wrong, as they give this > functionality a prominent spot in their UI. And you assume that users who mute a video want the display to remain on, regardless of whether they're actually watching or listening to it. In fact, muting a video is a strong signal that users aren't actually watching it. > As it stands now, is there any benefit in keeping the patch in the tree? Yes. It protects users from having autoplaying muted videos from draining their battery.
Note You need to log in before you can comment on or make changes to this bug.