У вашего броузера проблема в совместимости с HTML5
This video explains how to create a camera app with camera2 api in android studio.
Reference article : https://android.jlelse.eu/the-least-you-can-do-with-camera2-api-2971c8c81b8b
Don't forget to hit the like and subscribe to this channel. And if you found the video helpful then share it here's the link.
https://youtu.be/V-kM5sC5T-Q