<?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>212780</bug_id>
          
          <creation_ts>2020-06-04 14:06:47 -0700</creation_ts>
          <short_desc>audio (and sometimes video) element get paused and stays paused when another app uses audio</short_desc>
          <delta_ts>2021-09-20 07:29:15 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Media</component>
          <version>Safari 13</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>iOS 13</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>makarand</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>eric.carlson</cc>
    
    <cc>jer.noble</cc>
    
    <cc>marymhart</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1659318</commentid>
    <comment_count>0</comment_count>
    <who name="">makarand</who>
    <bug_when>2020-06-04 14:06:47 -0700</bug_when>
    <thetext>Some audio (and sometimes video) elements stay in paused state even after Safari gains foreground.

To repro this issue check out sample app @ https://makarandp0.github.io/safariAudioGetsPaused/

Steps
1) Click &quot;Synthetic Audio&quot; - This will create an audio track local and remote (using webrtc) and attach them to audio elements.
2) Go to Youtube (or other application) and play some content - Notice that audio elements on sample page gets paused - which is Okay.

3) Go back to Safari - 
Actual: notice that Local Audio Track starts playing but Remote Audio Element stays muted.
Expected: Both audio elements should receive &quot;play&quot; event and start playing.

I have seen this with both audio and video tracks, both synthetic and the ones obtained using `getUserMedia`.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1660106</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-06-07 13:50:01 -0700</bug_when>
    <thetext>&lt;rdar://problem/64094978&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>