WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED CONFIGURATION CHANGED
267676
First audio stream will be silence when re-create audio with echoCancellation: false
https://bugs.webkit.org/show_bug.cgi?id=267676
Summary
First audio stream will be silence when re-create audio with echoCancellation...
simu
Reported
2024-01-17 23:05:12 PST
Created
attachment 469438
[details]
First audio stream will be silence when re-create audio with echoCancellation: false Device: iPad 17.2 z Step to reproduce this bug: 1. Create mic-audio stream and play it ```js let audioInput = await navigator.mediaDevices.enumerateDevices().then(devices => { return devices.find(device => device.kind === 'audioinput'); }); const stream = await navigator.mediaDevices.getUserMedia({ audio: { deviceId: audioInput.deviceId } }); audioElement.srcObject = stream; audioElement.play(); ``` You will hear you own voice. 1. Re-create the same device Id mic-audio stream with echoCancellation: false ```js await navigator.mediaDevices.getUserMedia({ audio: { deviceId: audioInput.deviceId, echoCancellation: false, } }); ``` You will never hear your voice from iPad spearker. Attachment is the minimal reproduce demo.
Attachments
First audio stream will be silence when re-create audio with echoCancellation: false
(1.45 KB, text/html)
2024-01-17 23:05 PST
,
simu
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2024-01-24 23:06:24 PST
<
rdar://problem/121577906
>
youenn fablet
Comment 2
2024-03-20 02:11:25 PDT
@simu, from our testing, what happens is that the first audio stream will not be silence but the audio capture level will be lower, as well as the audio rendering level. FWIW, we do not support capturing with and without echo cancellation. When starting capturing the second time (without echo cancellation), the first audio stream will get the same data as the new audio stream. See
https://jsfiddle.net/3z6njbvr/
for instance. Can you describe more clearly what you are trying to achieve here?
youenn fablet
Comment 3
2024-03-25 00:42:17 PDT
Additional fiddle available at
https://cdpn.io/pen/debug/xxerOvd?authentication_hash=gaAeYgPYXwvA
which shows that the first audio stream continues to be recorded even if we set echoCancellation: false on the second stream. Marking as Configuration Changed. I will tackle the potential audio volume issue found during investigation at
https://bugs.webkit.org/show_bug.cgi?id=271305
.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug