Re: Towards a getUserMedia/enumerateDevices fingerprinting solution

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