We host an Asp.Net Core 3.1 app in Azure. Part of our app requires the user to be able to use the camera on their smartphone to take a photo. We have put in code to accomplish this using the WebcamJS v1.0.25.
This works when we use Chrome, Firefox, and Safari. It works for the Edge Browser on our desktop, but it does not work when we use Edge on our Phone.
how can we make the Edge Browser work on our phone?
function attech_camera() {
$("#CameraModal").modal({
backdrop: "static",
show: true
});
Webcam.set({
width: 300,
height: 240,
image_format: 'jpeg',
jpeg_quality: 100 ,
constraints: {
video: true,
facingMode: "environment"
}
});
Webcam.attach('#my_camera');
}