瀏覽代碼

fix(blur): on FF

master
Hristo Terezov 6 年之前
父節點
當前提交
1b4bdb5142
共有 1 個檔案被更改,包括 4 行新增0 行删除
  1. 4
    0
      react/features/stream-effects/blur/JitsiStreamBlurEffect.js

+ 4
- 0
react/features/stream-effects/blur/JitsiStreamBlurEffect.js 查看文件

28
         this._onVideoFrameTimer = this._onVideoFrameTimer.bind(this);
28
         this._onVideoFrameTimer = this._onVideoFrameTimer.bind(this);
29
 
29
 
30
         this._outputCanvasElement = document.createElement('canvas');
30
         this._outputCanvasElement = document.createElement('canvas');
31
+
32
+        // Workaround for FF issue https://bugzilla.mozilla.org/show_bug.cgi?id=1388974
33
+        this._outputCanvasElement.getContext('2d');
34
+
31
         this._maskCanvasElement = document.createElement('canvas');
35
         this._maskCanvasElement = document.createElement('canvas');
32
         this._inputVideoElement = document.createElement('video');
36
         this._inputVideoElement = document.createElement('video');
33
 
37
 

Loading…
取消
儲存