<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>259227</bug_id>
          
          <creation_ts>2023-07-14 13:40:11 -0700</creation_ts>
          <short_desc>[GTK] Allow automatically pausing the previously playing video with sound when another one starts playing in a newly created tab / window</short_desc>
          <delta_ts>2024-12-26 09:20:41 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKitGTK</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=285167</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>245783</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Jeff Fortin">nekohayo</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>happypig971021</cc>
    
    <cc>philn</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1966803</commentid>
    <comment_count>0</comment_count>
    <who name="Jeff Fortin">nekohayo</who>
    <bug_when>2023-07-14 13:40:11 -0700</bug_when>
    <thetext>The &quot;Enhancer for YouTube&quot; webextension add-on¹ has a &quot;Pause videos playing in background tabs when a video starts playing in the foreground tab&quot; 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&apos;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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1967330</commentid>
    <comment_count>1</comment_count>
    <who name="Suhail">happypig971021</who>
    <bug_when>2023-07-19 02:29:43 -0700</bug_when>
    <thetext>change from safari to another app which is playing sounds, &lt;audio&gt; status on safari will be paused first and then be playiny, but can&apos;t play sounds on safari. This is puzzling.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1969404</commentid>
    <comment_count>2</comment_count>
    <who name="Philippe Normand">philn</who>
    <bug_when>2023-08-03 02:02:58 -0700</bug_when>
    <thetext>(In reply to Suhail from comment #1)
&gt; change from safari to another app which is playing sounds, &lt;audio&gt; status on
&gt; safari will be paused first and then be playiny, but can&apos;t play sounds on
&gt; safari. This is puzzling.

This specific bug is not about Safari.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1969405</commentid>
    <comment_count>3</comment_count>
    <who name="Philippe Normand">philn</who>
    <bug_when>2023-08-03 02:04:46 -0700</bug_when>
    <thetext>The problem here is that a different tab means different webview, hence possibly different WebProcess. So this would be a significant effort, and I&apos;m not even sure it would be much GStreamer-related, so I&apos;ll update the bug title.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>