I want to access the webcam to use it in my chrome extension.
I'm getting this error DOMException: Permission denied
when the popup is opened, I have the needed code to query the webcam in my popup.js file. How I can use webcam in my chrome extension and fix this error?
I've looked at the documentation to try understanding if there is any permission to add into the manifest file but I didn't find any info about. Can someone help me?
in my poupu.js I have this code
navigator.getUserMedia({ video: true, audio: false }, (stream) => {
this.$refs.video.srcObject = stream
}, (err) => {
console.log(err)
})
NB: I'm using vue to manage the front-end stuff of the extension