Issue with screensharing with embedded iFrames
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
Comments
0 comments
Please sign in to leave a comment.