[Jprogramming] JHS navigator.mediaDevices.getUserMedia fails

David Mitchell davidmitchell at att.net
Sat Jun 3 21:57:35 UTC 2017


This looked interesting to me:

https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia

Using the new API in older browsers

Here's an example of using navigator.mediaDevices.getUserMedia(), with a 
polyfill to cope with older browsers. Note that this polyfill does not correct 
for legacy differences in constraints syntax, which means constraints won't work 
well across browsers. It is recommended to use the adapter.js polyfill instead, 
which does handle constraints.

On 6/3/2017 17:46, Brian Schott wrote:
> I tried the same thing with Safari and Firefox, after only Chrome.
> Only Firefox 48.0.2 accepts the whole condition.
> I still don't have the camera view, but Firefox asked about my camera by
> name.
> So I'll likely be back with more questions.
> 
> But I still need to know how to trick the other browsers into asking or
> assuming it's Ok to use the camera. I wish I understood how to study such
> things in the browswer debuggers.
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
> 


More information about the Programming mailing list