W3C home > Mailing lists > Public > public-webrtc@w3.org > February 2019

Re: Towards a getUserMedia/enumerateDevices fingerprinting solution

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
Message-ID: <25a565b1-f5ab-059b-00d5-9265547e7bea@mozilla.com>
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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:18:46 UTC