Bug 241492 - Muted Audio element is unmuted automatically after rendering camera stream on a video element causing unwanted noise and echo
Summary: Muted Audio element is unmuted automatically after rendering camera stream on...
Status: RESOLVED DUPLICATE of bug 235544
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebRTC (show other bugs)
Version: Safari 15
Hardware: Unspecified Unspecified
: P2 Major
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-06-09 15:19 PDT by Charlie
Modified: 2022-06-16 23:22 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Charlie 2022-06-09 15:19:23 PDT
If you render a muted audio element and set its source to the microphone'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
Comment 1 youenn fablet 2022-06-16 05:56:32 PDT
I was not able to reproduce on macOS 12.5 nor on iOS 16 beta.
Comment 2 Charlie 2022-06-16 10:39:03 PDT
I was reproducing it on 15.4. But I cannot reproduce anymore on 15.5
Comment 3 Radar WebKit Bug Importer 2022-06-16 15:20:13 PDT
<rdar://problem/95335428>
Comment 4 youenn fablet 2022-06-16 23:22:59 PDT
Thanks Charlie, I think this is bug 235544. Marking it as such.

*** This bug has been marked as a duplicate of bug 235544 ***