- From: Jan-Ivar Bruaroey <jib@mozilla.com>
- Date: Wed, 27 Feb 2019 08:48:48 -0500
- To: Philipp Hancke <fippo@goodadvice.pages.de>, public-webrtc@w3.org
On 2/27/19 8:44 AM, Jan-Ivar Bruaroey wrote:
> What I show above gives only one permission prompt in all browsers.
Uh, I typed too fast. I meant:
try {
stream = await navigator.mediaDevices.getUserMedia({video: true,
audio: true});
} catch(e) {
if (e.name == NotFoundError) {
stream = await navigator.mediaDevices.getUserMedia({audio: true});
}
} catch(e) {
if (e.name == NotFoundError) {
stream = await navigator.mediaDevices.getUserMedia({video: true});
}
} catch(e) {
console.log(e);
}
.: Jan-Ivar :.
Received on Wednesday, 27 February 2019 13:49:12 UTC