I’m trying to use the
<video> element to access my webcam video stream, but I’m having troubles with the permissions.
Here’s the error message:
VideoCapture permission has been blocked because of a Feature Policy applied to the current document. See [https://goo.gl/EuHzyv](https://goo.gl/EuHzyv) for more details.
From my (limited) understanding of the provided link this is due to some CORS-related restrictions.
A suggested workaround is the use of
allow="camera" attribute in an
iframe tag, but I can’t make it work regardless.
I’ve searched around the forum and the public notebooks but haven’t come across any example for accessing the webcam. This is issue might be the closest I’ve found: https://talk.observablehq.com/t/iframe-sandbox-attribute/193/7
Thank you in advance!