We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Neither camera nor microphone work in iframe.
They should work
package.json
{ "main": "/main.html", "name": "demo" }
main.html
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>Demo</title> <script> chrome.contentSettings.camera.set({ primaryPattern:"https://webcamtests.com/*", scope: "regular", setting: "allow" }); </script> </head> <body style="width:100vw;height:100vh"> <h2>Camera doesn't work in webviews and iframes:</h2> <iframe style="width:100%;height:100%" src="https://webcamtests.com" allow="camera https://webcamtests.com; microphone https://webcamtests.com"></iframe> </body> </html>
Demo opens Webcam Test which perfectly shows that neither camera nor microphone can be even detected.
The text was updated successfully, but these errors were encountered:
https://blog.addpipe.com/camera-and-microphone-access-in-cross-oirigin-iframes-with-feature-policy/ A quick internet search brought me to this. Please go through this and see if it helps
Sorry, something went wrong.
@ayushmanchhabra No, that doesn't help. Everyhing is correct with my iframe definition: it works in a regular environment.
Clipboard also doesn't work in iframe. Have mentioned this in #8170
No branches or pull requests
Current/Missing Behavior
Neither camera nor microphone work in iframe.
Expected/Proposed Behavior
They should work
Additional Info
How to reproduce
package.json
main.html
Demo opens Webcam Test which perfectly shows that neither camera nor microphone can be even detected.
The text was updated successfully, but these errors were encountered: