Merge pull request #13822 from JoVictorNunes/issue-13796

fix: unexpected blurred effect
This commit is contained in:
Anton Georgiev 2021-12-06 12:35:27 -05:00 committed by GitHub
commit 3998b6e736
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -83,6 +83,8 @@ export class BBBVideoStream extends EventEmitter2 {
name,
isVirtualBackground: this.isVirtualBackground(type),
});
this.virtualBgType = type;
this.virtualBgName = name;
return Promise.resolve();
} catch (error) {
return Promise.reject(error);
@ -114,8 +116,8 @@ export class BBBVideoStream extends EventEmitter2 {
this.virtualBgService = null;
}
this.virtualBgType = EFFECT_TYPES.BLUR_TYPE;
this.virtualBgName = BLUR_FILENAME;
this.virtualBgType = EFFECT_TYPES.NONE_TYPE;
this.virtualBgName = undefined;
this.mediaStream = this.originalStream;
this.isVirtualBackgroundEnabled = false;
}