external
external copied to clipboard
Grant permission for multimedia in the frame
Aside of full-screen, permission for microphone, camera and display capture are granted for use with WebRTC.
Fixes #237
This may benefit from being an option that can be set by the admin in the admin settings?
Well, I thought of, but I did not find any case: Why should I cut down the options a website features? At least if I include a website using WebRTC, in almost every case this is the principal feature of that service.
Well because security is a design principal. Otherwise the options for that wouldn't be off in first place 🙃
I'm trying to use this PR and tested it with my Jitsi-meet. There is still no video/audio permissions
But have tested a fresh HTML Iframe with allow = "camera; microphone;"
Is the issue on my nextcloud side?
I have the latest nextcloud 21.0.2(docker) and external-sites app 3.7.3
This does not work currently due to the Feature-Policy
also being set in the headers so that will also need to be set if the user wants these permissions given to the embedded website.
This does not work currently due to the
Feature-Policy
also being set in the headers so that will also need to be set if the user wants these permissions given to the embedded website.
thanks
editing nextcloud/lib/public/AppFramework/Http/FeaturePolicy.php
by adding * inside protected $cameraDomains = [ '*', ];
and protected $microphoneDomains = [ '*', ];
Solved my camera/audio iFrame permission issue
Hello there, Thank you so much for taking the time and effort to create a pull request to our Nextcloud project.
We hope that the reviewing process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, we would appreciate your feedback on your experience with our community management team.
Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6
Thank you for contributing to Nextcloud and we hope to hear from you soon!
Hi @TheOneWithTheBraid, thank you for your PR. I'm sorry this has been open for so long.
I have a few changes I'd like to see in this PR before it can be merged:
- You need to add a FeaturePolicy so that your changes actually work. You can take a look at https://github.com/nextcloud/spreed/blob/master/lib/Listener/FeaturePolicyListener.php
- The settings should contain an option to allow additional permissions to the iframe.
- It would make sense to make it possible to configure any permissions in the settings and not just the ones you added here. It would be great if all permissions in https://github.com/nextcloud/server/blob/master/lib/public/AppFramework/Http/EmptyFeaturePolicy.php could be configured in the settings.
I hope this helps with bringing the PR forward. Let me know if you have questions or need help.