@stream-io/video-filters-web 0.7.2 → 0.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/index.cjs.js +6 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +6 -4
- package/dist/index.es.js.map +1 -1
- package/dist/src/WebGLRenderer.d.ts +5 -0
- package/dist/src/types.d.ts +31 -0
- package/package.json +1 -1
- package/src/VirtualBackground.ts +2 -0
- package/src/WebGLRenderer.ts +17 -3
- package/src/types.ts +34 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [0.7.3](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-filters-web-0.7.2...@stream-io/video-filters-web-0.7.3) (2026-03-27)
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
- **react:** expose segmentation smoothing options and add model picker in video effects settings ([#2176](https://github.com/GetStream/stream-video-js/issues/2176)) ([edee6bf](https://github.com/GetStream/stream-video-js/commit/edee6bf8d9aacdfb2ae49fb202ba7f7d1140063f))
|
|
10
|
+
|
|
5
11
|
## [0.7.2](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-filters-web-0.7.1...@stream-io/video-filters-web-0.7.2) (2026-01-30)
|
|
6
12
|
|
|
7
13
|
### Bug Fixes
|
package/dist/index.cjs.js
CHANGED
|
@@ -1561,7 +1561,7 @@ const createTFLiteSIMDModule = (__Module) => {
|
|
|
1561
1561
|
return __Module.ready;
|
|
1562
1562
|
};
|
|
1563
1563
|
|
|
1564
|
-
const version = "0.7.
|
|
1564
|
+
const version = "0.7.3";
|
|
1565
1565
|
const packageName = "@stream-io/video-filters-web";
|
|
1566
1566
|
|
|
1567
1567
|
// @ts-expect-error - module is not declared
|
|
@@ -2109,9 +2109,9 @@ class WebGLRenderer {
|
|
|
2109
2109
|
gl.activeTexture(gl.TEXTURE2);
|
|
2110
2110
|
gl.bindTexture(gl.TEXTURE_2D, prevStateTexture);
|
|
2111
2111
|
gl.uniform1i(stateUpdateLocations.prevStateTexture, 2);
|
|
2112
|
-
gl.uniform1f(stateUpdateLocations.smoothingFactor, 0.8);
|
|
2113
|
-
gl.uniform1f(stateUpdateLocations.smoothstepMin, 0.6);
|
|
2114
|
-
gl.uniform1f(stateUpdateLocations.smoothstepMax, 0.9);
|
|
2112
|
+
gl.uniform1f(stateUpdateLocations.smoothingFactor, options.segmentationOptions?.smoothingFactor ?? 0.8);
|
|
2113
|
+
gl.uniform1f(stateUpdateLocations.smoothstepMin, options.segmentationOptions?.smoothstepMin ?? 0.6);
|
|
2114
|
+
gl.uniform1f(stateUpdateLocations.smoothstepMax, options.segmentationOptions?.smoothstepMax ?? 0.9);
|
|
2115
2115
|
gl.uniform1i(stateUpdateLocations.selfieModel, options.isSelfieMode ? 1 : 0);
|
|
2116
2116
|
gl.enableVertexAttribArray(stateUpdateLocations.position);
|
|
2117
2117
|
gl.bindBuffer(gl.ARRAY_BUFFER, this.positionBuffer);
|
|
@@ -2632,6 +2632,7 @@ class VirtualBackground extends BaseVideoProcessor {
|
|
|
2632
2632
|
bgBlur: 0,
|
|
2633
2633
|
bgBlurRadius: 0,
|
|
2634
2634
|
isSelfieMode,
|
|
2635
|
+
segmentationOptions: this.options.segmentationOptions,
|
|
2635
2636
|
};
|
|
2636
2637
|
}
|
|
2637
2638
|
const blurLevel = this.options.backgroundBlurLevel;
|
|
@@ -2643,6 +2644,7 @@ class VirtualBackground extends BaseVideoProcessor {
|
|
|
2643
2644
|
bgBlur: Math.min(strength * 1.5, 20),
|
|
2644
2645
|
bgBlurRadius: Math.min(strength, 10),
|
|
2645
2646
|
isSelfieMode,
|
|
2647
|
+
segmentationOptions: this.options.segmentationOptions,
|
|
2646
2648
|
};
|
|
2647
2649
|
}
|
|
2648
2650
|
async loadBackground(url) {
|