mirror of
https://github.com/vector-im/element-call.git
synced 2026-01-18 02:32:27 +00:00
Get blurring working again
This commit is contained in:
@@ -54,9 +54,14 @@ export class BlurBackgroundTransformer extends BackgroundTransformer {
|
||||
delegate: "GPU",
|
||||
...this.options.segmenterOptions,
|
||||
},
|
||||
canvas: this.canvas,
|
||||
runningMode: "VIDEO",
|
||||
outputCategoryMask: true,
|
||||
outputConfidenceMasks: false,
|
||||
});
|
||||
|
||||
if (this.options.blurRadius) {
|
||||
this.gl?.setBlurRadius(this.options.blurRadius);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -90,7 +90,7 @@ export const ProcessorProvider: FC<Props> = ({ children }) => {
|
||||
try {
|
||||
if (!blur.current) {
|
||||
blur.current = new ProcessorWrapper(
|
||||
new BlurBackgroundTransformer({}),
|
||||
new BlurBackgroundTransformer({ blurRadius: 15 }),
|
||||
"background-blur",
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user