<?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>246019</bug_id>
          
          <creation_ts>2022-10-04 07:34:42 -0700</creation_ts>
          <short_desc>[Iphone 14 Pro] MediaStream Audio Track stops working because of audio context interaction</short_desc>
          <delta_ts>2022-12-12 07:53:08 -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>WebRTC</component>
          <version>Safari 16</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>iOS 16</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Blocker</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>ivan.zahrodskyi</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>anzhaowei</cc>
    
    <cc>davy.de.durpel</cc>
    
    <cc>ddp.bkdn</cc>
    
    <cc>rychouwei</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1903119</commentid>
    <comment_count>0</comment_count>
      <attachid>462787</attachid>
    <who name="">ivan.zahrodskyi</who>
    <bug_when>2022-10-04 07:34:42 -0700</bug_when>
    <thetext>Created attachment 462787
small sample to reproduce the issue

If I creating and interacting with AudioContext it is brokes local audio tracks.
Steps:
- create audio context
- do something (e.q. createGain)
- get local media
- assing to video element

Actual result:
- no audio and MediaStreamTrack ended due to a capture failure after few seconds. And you cant get any audio track anymore at this page


I created small sample to reproduce the issue.

Iphone 14 Pro, iOS 16.0.2

Issue is reproducible only on iphone 14 Pro (we tested on 2 devices)

Don&apos;t reproducible on iphone 13 pro and iphone 12 pro</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1903197</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-10-04 11:51:52 -0700</bug_when>
    <thetext>&lt;rdar://problem/100774523&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1905515</commentid>
    <comment_count>2</comment_count>
    <who name="">rychouwei</who>
    <bug_when>2022-10-13 20:03:29 -0700</bug_when>
    <thetext>We have same issue</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1913847</commentid>
    <comment_count>3</comment_count>
    <who name="Vincent">anzhaowei</who>
    <bug_when>2022-11-21 04:53:35 -0800</bug_when>
    <thetext>we have same issue on iphone14 pro and iphone14 pro max.
We have tested on 4 devices.

When you have this issue, you could not create any new audio tracks at this page and another tab page.

This is my demo&apos;s URL:
https://www.neil9111.com/rtc-wtf/webaudio.html

You can click these buttons in order of &apos;play&apos;,&apos;resume webaudio&apos;,&apos;stop&apos;,&apos;play&apos;,
eventually you won&apos;t be able to hear it on iphone14 pro, iphone14 pro max.
But it works fine on other devices.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1917119</commentid>
    <comment_count>4</comment_count>
    <who name="PhungDuong">ddp.bkdn</who>
    <bug_when>2022-12-06 19:57:42 -0800</bug_when>
    <thetext>Iphone 14 pro iOS 16.1.2

When joining meetings via WebRTC video call.
Can&apos;t speak or hear any from others.
Frequency is 100%.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1917120</commentid>
    <comment_count>5</comment_count>
    <who name="PhungDuong">ddp.bkdn</who>
    <bug_when>2022-12-06 19:58:02 -0800</bug_when>
    <thetext>Iphone 14 pro iOS 16.1.2

When joining meetings via WebRTC video call.
Can&apos;t speak or hear any from others.
Frequency is 100%.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1917882</commentid>
    <comment_count>6</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2022-12-09 00:29:18 -0800</bug_when>
    <thetext>Can you reproduce in latest iOS 16.2 beta?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1918436</commentid>
    <comment_count>7</comment_count>
    <who name="Davy De Durpel">davy.de.durpel</who>
    <bug_when>2022-12-12 03:03:02 -0800</bug_when>
    <thetext>I can confirm that for my application it seems to work like a charm again with 16.2 beta.  I tested multiple times in several combinations and I always got the expected result.  So please release 6.2 tomorrow ;-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1918490</commentid>
    <comment_count>8</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2022-12-12 07:53:08 -0800</bug_when>
    <thetext>Marking as configuration changed.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>462787</attachid>
            <date>2022-10-04 07:34:42 -0700</date>
            <delta_ts>2022-10-04 07:34:42 -0700</delta_ts>
            <desc>small sample to reproduce the issue</desc>
            <filename>test.html</filename>
            <type>text/html</type>
            <size>440</size>
            <attacher>ivan.zahrodskyi</attacher>
            
              <data encoding="base64">PGh0bWw+CiAgPHNjcmlwdD4KICAgIHdpbmRvdy5pbml0ID0gYXN5bmMgKCkgPT4gewogICAgICBj
b25zdCBhdWRpb0NvbnRleHQgPSBuZXcgQXVkaW9Db250ZXh0KCk7CiAgICAgIGNvbnN0IGdhaW5O
b2RlID0gYXVkaW9Db250ZXh0LmNyZWF0ZUdhaW4oKTsKICAgICAgY29uc3Qgc3RyID0gYXdhaXQg
bmF2aWdhdG9yLm1lZGlhRGV2aWNlcy5nZXRVc2VyTWVkaWEoe2F1ZGlvOiB0cnVlLCB2aWRlbzog
dHJ1ZX0pOwogICAgICB2aWRlby5zcmNPYmplY3QgPSBzdHI7CiAgICB9OwogIDwvc2NyaXB0Pgog
IDxib2R5PgogICAgPHZpZGVvIGlkPSJ2aWRlbyIgYXV0b3BsYXkgcGxheXNpbmxpbmU+PC92aWRl
bz4KICAgIDxidXR0b24gb25jbGljaz0iaW5pdCgpIiBzdHlsZT0id2lkdGg6IDIwMHB4OyBoZWln
aHQ6IDIwMHB4OyI+SU5JVDwvYnV0dG9uPgogIDwvYm9keT4KPC9odG0=
</data>

          </attachment>
      

    </bug>

</bugzilla>