feat(external_api): set permissions for cross-origin iframe

In Chrome M63 a warning is shown, permissions won't be automatically allowed
afterwards. Reference:
https://sites.google.com/a/chromium.org/dev/Home/chromium-security/deprecating-permissions-in-cross-origin-iframes

Setting this early makes us future proof, while working with current versions
too: Chrome < 63 gives an error because it doesn't understand the option and
Firefox seems to ignore it, so both continue to work as before.
This commit is contained in:
Saúl Ibarra Corretgé 2017-09-08 10:33:53 +02:00 committed by hristoterezov
parent f86f21beb2
commit 46ccefdfe9
1 changed files with 1 additions and 0 deletions

View File

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