@stream-io/video-filters-web 0.7.0 → 0.7.1
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 +4 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +4 -3
- package/dist/index.es.js.map +1 -1
- package/mediapipe/models/selfie_multiclass_256x256.tflite +0 -0
- package/mediapipe/models/selfie_segmenter_landscape.tflite +0 -0
- package/package.json +1 -1
- package/src/VirtualBackground.ts +2 -1
- package/src/mediapipe.ts +1 -1
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.1](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-filters-web-0.7.0...@stream-io/video-filters-web-0.7.1) (2026-01-27)
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
- **react:** switch selfie segmentation default to landscape model ([#2100](https://github.com/GetStream/stream-video-js/issues/2100)) ([7c5d74d](https://github.com/GetStream/stream-video-js/commit/7c5d74d79ba1eb2f5a04a60a953ea0bd46633f4a))
|
|
10
|
+
|
|
5
11
|
## [0.7.0](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-filters-web-0.6.0...@stream-io/video-filters-web-0.7.0) (2025-12-23)
|
|
6
12
|
|
|
7
13
|
### Features
|
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.1";
|
|
1565
1565
|
const packageName = "@stream-io/video-filters-web";
|
|
1566
1566
|
|
|
1567
1567
|
// @ts-expect-error - module is not declared
|
|
@@ -1593,7 +1593,7 @@ const fetchModel = async (modelFilePath) => {
|
|
|
1593
1593
|
let lastModelFilePath = '';
|
|
1594
1594
|
let modelFileCache;
|
|
1595
1595
|
const loadMediaPipe = async (options = {}) => {
|
|
1596
|
-
const { basePath = `https://unpkg.com/${packageName}@${version}/mediapipe`, modelPath = `${basePath}/models/
|
|
1596
|
+
const { basePath = `https://unpkg.com/${packageName}@${version}/mediapipe`, modelPath = `${basePath}/models/selfie_segmenter_landscape.tflite`, } = options;
|
|
1597
1597
|
const model = modelPath === lastModelFilePath && modelFileCache
|
|
1598
1598
|
? modelFileCache
|
|
1599
1599
|
: await fetch(modelPath).then((r) => r.arrayBuffer());
|
|
@@ -2580,7 +2580,8 @@ class VirtualBackground extends BaseVideoProcessor {
|
|
|
2580
2580
|
this.opts = await this.initializeSegmenterOptions();
|
|
2581
2581
|
const basePath = this.options.basePath ||
|
|
2582
2582
|
`https://unpkg.com/${packageName}@${version}/mediapipe`;
|
|
2583
|
-
const model = this.options.modelPath ||
|
|
2583
|
+
const model = this.options.modelPath ||
|
|
2584
|
+
`${basePath}/models/selfie_segmenter_landscape.tflite`;
|
|
2584
2585
|
const fileset = await tasksVision.FilesetResolver.forVisionTasks(`${basePath}/wasm`);
|
|
2585
2586
|
this.segmenter = await tasksVision.ImageSegmenter.createFromOptions(fileset, {
|
|
2586
2587
|
baseOptions: { modelAssetPath: model, delegate: 'GPU' },
|