1 Answer
- Newest
- Most votes
- Most comments
1
Hi,
When a browser downloads HTML/JavaScript/CSS files that need access the local media devices (such as the camera or microphone) it will use the device's local APIs. However, most browsers will block these API calls if the files were delivered over an unencrypted connection, i.e., via HTTP since these could be malicious.
The main cause of this issue could be that you are hosting your static HTML, JavaScript, and CSS files on an EC2 instance without using HTTPS. To resolve this, you should switch to using HTTPS when hosting these static files. Once you make the switch to HTTPS, the browser-based access to the local media devices should work as expected.
Thanks, Rama
Relevant content
- asked 4 months ago
- asked 3 years ago
- asked 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 5 months ago
- AWS OFFICIALUpdated 2 years ago