mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
fix(external-api) add policy to support the Compute Pressure API
https://w3c.github.io/compute-pressure/#policy-control
This commit is contained in:
committed by
Saúl Ibarra Corretgé
parent
cb26042d08
commit
8b209b3c6e
11
modules/API/external/external_api.js
vendored
11
modules/API/external/external_api.js
vendored
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user