Skip to content
New issue

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

[Docs] Update iframe examples to add feature policy for camera access #251

Closed
Giwayume opened this issue Apr 19, 2021 · 1 comment
Closed

Comments

@Giwayume
Copy link
Contributor

Giwayume commented Apr 19, 2021

This is one of many files that show how to instantiate minpaint on another page using an iframe:
https://github.com/viliusle/miniPaint/blob/master/examples/add-edit-imgData.html#L4
I don't know the list of all files that show iframe usage examples.

When the user does File -> Open -> Open from Webcam, this feature has usage limiations. By default access to the webcam from iframes is not allowed.

For iframes that need this access, need to add allow="camera" to the iframe declaration.

<iframe allow="camera"></iframe>
@viliusle
Copy link
Owner

I will update examples.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants