damirarh / damirscorner-utterances

utteranc.es comments for https://damirscorner.com
0 stars 0 forks source link

/blog/posts/20170901-DetectingCameraPermissionDialogInBrowser.html #59

Open damirarh opened 1 year ago

damirarh commented 1 year ago

Imported

URL: https://www.damirscorner.com/blog/posts/20170901-DetectingCameraPermissionDialogInBrowser.html

damirarh commented 1 year ago

Imported comment written by octavn on 2017-11-27T14:43:18

Interesting solution. `PermissionDismissedError ` might be removed in the move towards spec compliant errors expected in Chrome 64 https://bugs.chromium.org/p... .

I've written more about getUserMedia errors at https://addpipe.com/blog/co...

damirarh commented 1 year ago

Imported comment written by octavn on 2019-05-03T11:30:44

With Chrome you can now accurately measure how many times the prompt is shown by querying the camera and microphone permissions with the Permissions API.

The 1000 ms method is rather inaccurate due to some long camera/microphone hardware initialiation times. With the Permissions API we accurately measured the prompt being shown 10% of the times (down from 27% with the 1000ms method).