Chrome and Firefox are not able to access iPhone Camera

The name of the picture


Chrome and Firefox are not able to access iPhone Camera



The below code of HTML


<video id="video" class="video" height="400" width="400" playsinline autoplay muted loop></video>



and JavaScript


var video = document.getElementById("video");

navigator.mediaDevices.getUserMedia({video: true, audio: false})
.then(function(s) {
stream = s;
video.srcObject = s;
video.play();
})



The link works fine on all Browsers in Android device, also works fine on Safari browser of iPhone devices, but it does not even ask camera permission for other Browsers like Chrome and Firefox on iPhone Devices.









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

How to scale/resize CVPixelBufferRef in objective C, iOS

Stripe::AuthenticationError No API key provided. Set your API key using “Stripe.api_key = ”

openssl aes gcm encryption with authentication TAG; command line