@stream-io/video-react-sdk 1.19.0 → 1.19.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stream-io/video-react-sdk",
3
- "version": "1.19.0",
3
+ "version": "1.19.1",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.es.js",
6
6
  "types": "./dist/index.d.ts",
@@ -30,9 +30,9 @@
30
30
  ],
31
31
  "dependencies": {
32
32
  "@floating-ui/react": "^0.27.6",
33
- "@stream-io/video-client": "1.27.0",
33
+ "@stream-io/video-client": "1.27.1",
34
34
  "@stream-io/video-filters-web": "0.2.1",
35
- "@stream-io/video-react-bindings": "1.7.9",
35
+ "@stream-io/video-react-bindings": "1.7.10",
36
36
  "chart.js": "^4.4.4",
37
37
  "clsx": "^2.0.0",
38
38
  "react-chartjs-2": "^5.3.0"
@@ -45,7 +45,7 @@
45
45
  "@rollup/plugin-json": "^6.1.0",
46
46
  "@rollup/plugin-replace": "^6.0.2",
47
47
  "@rollup/plugin-typescript": "^12.1.2",
48
- "@stream-io/audio-filters-web": "^0.4.2",
48
+ "@stream-io/audio-filters-web": "^0.4.3",
49
49
  "@stream-io/video-styling": "^1.4.0",
50
50
  "@types/react": "^19.1.3",
51
51
  "@types/react-dom": "^19.1.3",
@@ -10,7 +10,7 @@ import {
10
10
  import { flushSync } from 'react-dom';
11
11
  import clsx from 'clsx';
12
12
  import { useCall } from '@stream-io/video-react-bindings';
13
- import { disposeOfMediaStream, getLogger } from '@stream-io/video-client';
13
+ import { Call, disposeOfMediaStream, getLogger } from '@stream-io/video-client';
14
14
  import {
15
15
  BackgroundBlurLevel,
16
16
  BackgroundFilter,
@@ -228,7 +228,7 @@ export const BackgroundFiltersProvider = (
228
228
 
229
229
  const BackgroundFilters = (props: { tfLite: TFLite }) => {
230
230
  const call = useCall();
231
- const { children, start } = useRenderer(props.tfLite);
231
+ const { children, start } = useRenderer(props.tfLite, call);
232
232
  const { backgroundFilter, onError } = useBackgroundFilters();
233
233
  const handleErrorRef = useRef<((error: any) => void) | undefined>(undefined);
234
234
  handleErrorRef.current = onError;
@@ -246,7 +246,7 @@ const BackgroundFilters = (props: { tfLite: TFLite }) => {
246
246
  return children;
247
247
  };
248
248
 
249
- const useRenderer = (tfLite: TFLite) => {
249
+ const useRenderer = (tfLite: TFLite, call: Call | undefined) => {
250
250
  const { backgroundFilter, backgroundBlurLevel, backgroundImage } =
251
251
  useBackgroundFilters();
252
252
  const videoRef = useRef<HTMLVideoElement>(null);
@@ -297,6 +297,11 @@ const useRenderer = (tfLite: TFLite) => {
297
297
  height: trackSettings.height ?? 0,
298
298
  }),
299
299
  );
300
+ call?.tracer.trace('backgroundFilters.enable', {
301
+ backgroundFilter,
302
+ backgroundBlurLevel,
303
+ backgroundImage,
304
+ });
300
305
  renderer = createRenderer(
301
306
  tfLite,
302
307
  videoEl,
@@ -320,13 +325,20 @@ const useRenderer = (tfLite: TFLite) => {
320
325
  return {
321
326
  output,
322
327
  stop: () => {
328
+ call?.tracer.trace('backgroundFilters.disable', null);
323
329
  renderer?.dispose();
324
330
  if (videoRef.current) videoRef.current.srcObject = null;
325
331
  if (outputStream) disposeOfMediaStream(outputStream);
326
332
  },
327
333
  };
328
334
  },
329
- [backgroundBlurLevel, backgroundFilter, backgroundImage, tfLite],
335
+ [
336
+ backgroundBlurLevel,
337
+ backgroundFilter,
338
+ backgroundImage,
339
+ call?.tracer,
340
+ tfLite,
341
+ ],
330
342
  );
331
343
 
332
344
  const children = (