@stream-io/video-filters-web 0.7.3 → 0.7.5
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 +8 -0
- package/dist/index.cjs.js +7 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +7 -5
- package/dist/index.es.js.map +1 -1
- package/package.json +7 -7
- package/src/VirtualBackground.ts +8 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [0.7.5](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-filters-web-0.7.4...@stream-io/video-filters-web-0.7.5) (2026-06-01)
|
|
6
|
+
|
|
7
|
+
## [0.7.4](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-filters-web-0.7.3...@stream-io/video-filters-web-0.7.4) (2026-04-09)
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
- **video-filters-web:** propagate background image load errors to prevent black frames ([#2188](https://github.com/GetStream/stream-video-js/issues/2188)) ([5dd6a4b](https://github.com/GetStream/stream-video-js/commit/5dd6a4b5768f39df411999dd64968c86c33c4967))
|
|
12
|
+
|
|
5
13
|
## [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
14
|
|
|
7
15
|
### 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.5";
|
|
1565
1565
|
const packageName = "@stream-io/video-filters-web";
|
|
1566
1566
|
|
|
1567
1567
|
// @ts-expect-error - module is not declared
|
|
@@ -2583,8 +2583,9 @@ class VirtualBackground extends BaseVideoProcessor {
|
|
|
2583
2583
|
this.isSegmenterReady = true;
|
|
2584
2584
|
}
|
|
2585
2585
|
catch (error) {
|
|
2586
|
-
console.error('[virtual-background] Segmenter init failed:', error);
|
|
2587
2586
|
this.isSegmenterReady = false;
|
|
2587
|
+
this.hooks.onError?.(error);
|
|
2588
|
+
throw error;
|
|
2588
2589
|
}
|
|
2589
2590
|
}
|
|
2590
2591
|
async transform(frame) {
|
|
@@ -2650,9 +2651,10 @@ class VirtualBackground extends BaseVideoProcessor {
|
|
|
2650
2651
|
async loadBackground(url) {
|
|
2651
2652
|
if (!url)
|
|
2652
2653
|
return null;
|
|
2653
|
-
const result = await fetch(url);
|
|
2654
|
-
if (!result.ok)
|
|
2655
|
-
|
|
2654
|
+
const result = await fetch(url, { signal: this.abortController.signal });
|
|
2655
|
+
if (!result.ok) {
|
|
2656
|
+
throw new Error(`[virtual-background] Failed to load background image: ${result.status} ${result.statusText}`);
|
|
2657
|
+
}
|
|
2656
2658
|
return {
|
|
2657
2659
|
type: 'image',
|
|
2658
2660
|
media: await createImageBitmap(await result.blob()),
|