Problem with iOS getUserMedia?

I am using the following code on an HTML5 page. when I launch my page on Android and PC (chrome), the code works fine and I get the correct javascript alert(); but when I launch the same page on ios device like iPhone or iPad, I get nothing (no alert() at all).

This is my code:

 navigator.getUserMedia = ( navigator.getUserMedia || // use the proper vendor prefix navigator.webkitGetUserMedia || navigator.mozGetUserMedia || navigator.msGetUserMedia); navigator.getUserMedia({video: true}, function() { alert('camera is supported in your browser'); }, function() { alert('camera is not supported in your browser!'); }); 

is there something i'm missing?

Any help would be appreciated.

+5
javascript html5
source share
1 answer

It will work in the fall of 2017, after iOS11 is released.

+1
source share

All Articles