fix(external_api): Pass Feature-Policy display-capture to the iframe

Starting from version 74, firefox need to be explicitly allowed to capture the screen from an iframe for screensharing. This new Feature-Policy is called "display-capture".
See: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Feature-Policy/display-capture
This commit is contained in:
Arzar 2020-03-16 19:03:30 +09:00 committed by Jaya Allamsetty
parent 9b0f5b0299
commit 011b7f9d00
1 changed files with 1 additions and 1 deletions

View File

@ -300,7 +300,7 @@ export default class JitsiMeetExternalAPI extends EventEmitter {
const frameName = `jitsiConferenceFrame${id}`; const frameName = `jitsiConferenceFrame${id}`;
this._frame = document.createElement('iframe'); this._frame = document.createElement('iframe');
this._frame.allow = 'camera; microphone'; this._frame.allow = 'camera; microphone; display-capture';
this._frame.src = this._url; this._frame.src = this._url;
this._frame.name = frameName; this._frame.name = frameName;
this._frame.id = frameName; this._frame.id = frameName;