瀏覽代碼

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
master
Arzar 5 年之前
父節點
當前提交
011b7f9d00
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      modules/API/external/external_api.js

+ 1
- 1
modules/API/external/external_api.js 查看文件

300
         const frameName = `jitsiConferenceFrame${id}`;
300
         const frameName = `jitsiConferenceFrame${id}`;
301
 
301
 
302
         this._frame = document.createElement('iframe');
302
         this._frame = document.createElement('iframe');
303
-        this._frame.allow = 'camera; microphone';
303
+        this._frame.allow = 'camera; microphone; display-capture';
304
         this._frame.src = this._url;
304
         this._frame.src = this._url;
305
         this._frame.name = frameName;
305
         this._frame.name = frameName;
306
         this._frame.id = frameName;
306
         this._frame.id = frameName;

Loading…
取消
儲存