[Webkit-unassigned] [Bug 235713] New: Acquiring stream from one microphone breaks all previous streams from another microphones
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Jan 27 06:54:21 PST 2022
https://bugs.webkit.org/show_bug.cgi?id=235713
Bug ID: 235713
Summary: Acquiring stream from one microphone breaks all
previous streams from another microphones
Product: WebKit
Version: Safari 15
Hardware: All
OS: All
Status: NEW
Severity: Critical
Priority: P2
Component: WebRTC
Assignee: webkit-unassigned at lists.webkit.org
Reporter: ivan.zahrodskyi at enghouse.com
CC: youennf at gmail.com
I want to get several audio MediaStreams from different mics, but getting new stream breaks previous.
To reproduce this we need machine with 2 microphones connected.
Steps:
1) get stream from first microphone (str1)
2) attach this stream to some audio node (or put to peer connection)
3) get another stream from second microphone (str2)
actual result:
observe that str1 now starts playing audio from second microphone
some code example to try this
//******************************//
//get all available microphones
let devices = await navigator.mediaDevices.enumerateDevices();
let microphones = devices.filter(d => d.kind === 'audioinput');
//get audio from first microphone
let str1 = await navigator.mediaDevices.getUserMedia({audio: {deviceId: microphones[0].deviceId}});
//play first stream
let audio = new Audio();
audio.srcObject = str1;
audio.play();
//get audio from second microphone
let str2 = await navigator.mediaDevices.getUserMedia({audio: {deviceId: microphones[1].deviceId}});
//observe that audio now starts playing audio from second microphone (not from str1)
//******************************//
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220127/164b8c78/attachment.htm>
More information about the webkit-unassigned
mailing list