fix(external-api) add policy to support the Compute Pressure API

https://w3c.github.io/compute-pressure/#policy-control
This commit is contained in:
Saúl Ibarra Corretgé
2023-09-21 12:15:29 +02:00
committed by Saúl Ibarra Corretgé
parent cb26042d08
commit 8b209b3c6e

View File

@@ -403,7 +403,16 @@ export default class JitsiMeetExternalAPI extends EventEmitter {
const frameName = `jitsiConferenceFrame${id}`;
this._frame = document.createElement('iframe');
this._frame.allow = 'camera; microphone; display-capture; autoplay; clipboard-write; hid; screen-wake-lock';
this._frame.allow = [
'autoplay',
'camera',
'clipboard-write',
'compute-pressure',
'display-capture',
'hid',
'microphone',
'screen-wake-lock'
].join('; ');
this._frame.name = frameName;
this._frame.id = frameName;
this._setSize(height, width);