Bug 259227
| Summary: | [GTK] Allow automatically pausing the previously playing video with sound when another one starts playing in a newly created tab / window | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Jeff Fortin <nekohayo> |
| Component: | WebKitGTK | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Enhancement | CC: | bugs-noreply, happypig971021, philn |
| Priority: | P2 | ||
| Version: | WebKit Nightly Build | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=285167 | ||
| Bug Depends on: | |||
| Bug Blocks: | 245783 | ||
Jeff Fortin
The "Enhancer for YouTube" webextension add-on¹ has a "Pause videos playing in background tabs when a video starts playing in the foreground tab" setting that makes a lot of sense: if you already have a playing video+audio tab (ex: a YouTube video), if you start another such tab, it automatically pauses playback in the other tab where sound was playing.
I think that's brilliant both for performance, lower power consumption, and for convenience: after all, it is unlikely that you can watch and listen to two videos at the same time _with sound_ ...
The exception I see is WebRTC: you should obviously not stop a WebRTC video+audio stream in favor of some random video from another tab, in that case it makes sense to have both playing at the same time.
---
¹: https://addons.mozilla.org/en-US/firefox/addon/enhancer-for-youtube/ and https://chrome.google.com/webstore/detail/enhancer-for-youtube/ponfpcnoihfmfllpaingbgckeeldkhle
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Suhail
change from safari to another app which is playing sounds, <audio> status on safari will be paused first and then be playiny, but can't play sounds on safari. This is puzzling.
Philippe Normand
(In reply to Suhail from comment #1)
> change from safari to another app which is playing sounds, <audio> status on
> safari will be paused first and then be playiny, but can't play sounds on
> safari. This is puzzling.
This specific bug is not about Safari.
Philippe Normand
The problem here is that a different tab means different webview, hence possibly different WebProcess. So this would be a significant effort, and I'm not even sure it would be much GStreamer-related, so I'll update the bug title.