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.
javascript html5
Jackson
source share