Symptom
When using the Vonage Video API within embedded iFrames on Chrome or Firefox with screen sharing, it throws an exception "End-user denied permission to hardware devices or user media support may be disabled on this page: getusermedia 'security'"
Applies To
- Embedded iFrames
- Permissions
Resolution
Please add the below to your iframe tag
<iframe src="xxx" allow="camera; microphone; display-capture"></iframe>
Once you add this, confirm it from the browser console after launching your application, by typing document.featurePolicy.allowedFeatures()
Additional Information
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Feature-Policy/display-capture
Articles in this section
- How to use Completion handler for Exception Handling
- Firefox Pre-call test not supported
- Error Creating Session Using Vonage Video API .NET SDK
- Unable to Create Session Even Though API Key and Secret Are Valid
- HTTP 415 Error When Archiving Video Session
- Troubleshooting Invalid JWT When Creating a Video Session using REST API
- Camara Still in Use after Session Disconnect on Android
- Token Shows as Invalid
- HTTP 400 Error When Archiving Video Session
- 1541 Timed out while attempting to publish Error