<?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>241492</bug_id>
          
          <creation_ts>2022-06-09 15:19:23 -0700</creation_ts>
          <short_desc>Muted Audio element is unmuted automatically after rendering camera stream on a video element causing unwanted noise and echo</short_desc>
          <delta_ts>2022-06-16 23:22:59 -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>WebRTC</component>
          <version>Safari 15</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>235544</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Charlie">csantos</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>webkit-bug-importer</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1875122</commentid>
    <comment_count>0</comment_count>
    <who name="Charlie">csantos</who>
    <bug_when>2022-06-09 15:19:23 -0700</bug_when>
    <thetext>If you render a muted audio element and set its source to the microphone&apos;s media stream, the audio element becomes unmuted automatically if you grab a camera track and set it to a video element. When this happens, the muted property of the audio element is still true, but you can still hear audio coming from the element. In this example, the audio source is coming from the microphone which is causing a lot of echo. I found this happening on my iPhone 11 iOS 15.4.1 using Safari or Chrome.

Please try it in this fiddle
https://jsfiddle.net/charlietwilio/ywd8khub/7/

Steps:
1. Load the jsfiddle on iOS Safari or Chrome
2. Press the Mic button on the fiddle and allow permissions
3. Speak on the microphone. You should not hear any echo
4. Press the Camera button on the fiddle and allow permissions
5. Speak on the microphone. Noticed that you will now hear echoing and your voice</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1876226</commentid>
    <comment_count>1</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2022-06-16 05:56:32 -0700</bug_when>
    <thetext>I was not able to reproduce on macOS 12.5 nor on iOS 16 beta.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1876272</commentid>
    <comment_count>2</comment_count>
    <who name="Charlie">csantos</who>
    <bug_when>2022-06-16 10:39:03 -0700</bug_when>
    <thetext>I was reproducing it on 15.4. But I cannot reproduce anymore on 15.5</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1876340</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-06-16 15:20:13 -0700</bug_when>
    <thetext>&lt;rdar://problem/95335428&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1876418</commentid>
    <comment_count>4</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2022-06-16 23:22:59 -0700</bug_when>
    <thetext>Thanks Charlie, I think this is bug 235544. Marking it as such.

*** This bug has been marked as a duplicate of bug 235544 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>