fix(blur): on FF

This commit is contained in:
Hristo Terezov 2019-07-08 15:37:15 +01:00
parent f030a3f1fb
commit 1b4bdb5142
1 changed files with 4 additions and 0 deletions

View File

@ -28,6 +28,10 @@ export default class JitsiStreamBlurEffect {
this._onVideoFrameTimer = this._onVideoFrameTimer.bind(this); this._onVideoFrameTimer = this._onVideoFrameTimer.bind(this);
this._outputCanvasElement = document.createElement('canvas'); this._outputCanvasElement = document.createElement('canvas');
// Workaround for FF issue https://bugzilla.mozilla.org/show_bug.cgi?id=1388974
this._outputCanvasElement.getContext('2d');
this._maskCanvasElement = document.createElement('canvas'); this._maskCanvasElement = document.createElement('canvas');
this._inputVideoElement = document.createElement('video'); this._inputVideoElement = document.createElement('video');