bump components-js (not yet working)
This commit is contained in:
@@ -5,10 +5,13 @@ SPDX-License-Identifier: AGPL-3.0-only
|
|||||||
Please see LICENSE in the repository root for full details.
|
Please see LICENSE in the repository root for full details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { BackgroundOptions, ProcessorWrapper } from "@livekit/track-processors";
|
import {
|
||||||
|
type BackgroundOptions,
|
||||||
|
ProcessorWrapper,
|
||||||
|
} from "@livekit/track-processors";
|
||||||
import {
|
import {
|
||||||
createContext,
|
createContext,
|
||||||
FC,
|
type FC,
|
||||||
useCallback,
|
useCallback,
|
||||||
useContext,
|
useContext,
|
||||||
useEffect,
|
useEffect,
|
||||||
@@ -16,7 +19,7 @@ import {
|
|||||||
useState,
|
useState,
|
||||||
} from "react";
|
} from "react";
|
||||||
import { logger } from "matrix-js-sdk/src/logger";
|
import { logger } from "matrix-js-sdk/src/logger";
|
||||||
import { LocalVideoTrack } from "livekit-client";
|
import { type LocalVideoTrack } from "livekit-client";
|
||||||
|
|
||||||
import {
|
import {
|
||||||
backgroundBlur as backgroundBlurSettings,
|
backgroundBlur as backgroundBlurSettings,
|
||||||
@@ -45,11 +48,12 @@ export const useTrackProcessorSync = (
|
|||||||
): void => {
|
): void => {
|
||||||
const { processor } = useTrackProcessor() || {};
|
const { processor } = useTrackProcessor() || {};
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (processor && !videoTrack?.getProcessor()) {
|
if (!videoTrack) return;
|
||||||
void videoTrack?.setProcessor(processor);
|
if (processor && !videoTrack.getProcessor()) {
|
||||||
|
void videoTrack.setProcessor(processor);
|
||||||
}
|
}
|
||||||
if (!processor && videoTrack?.getProcessor()) {
|
if (!processor && videoTrack.getProcessor()) {
|
||||||
void videoTrack?.stopProcessor();
|
void videoTrack.stopProcessor();
|
||||||
}
|
}
|
||||||
}, [processor, videoTrack]);
|
}, [processor, videoTrack]);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1941,9 +1941,9 @@
|
|||||||
rxjs "7.8.1"
|
rxjs "7.8.1"
|
||||||
|
|
||||||
"@livekit/components-react@^2.0.0":
|
"@livekit/components-react@^2.0.0":
|
||||||
version "2.6.9"
|
version "2.6.10"
|
||||||
resolved "https://registry.yarnpkg.com/@livekit/components-react/-/components-react-2.6.9.tgz#2ff4691dc2cae6ed4c4b2e586a255d00e494bf9c"
|
resolved "https://registry.yarnpkg.com/@livekit/components-react/-/components-react-2.6.10.tgz#949d6e65e8507e2d8a4c75bf190adf56f6358175"
|
||||||
integrity sha512-j43i/Dm8dlI2jxv5wv0s+69QPVqVEjg0y2tyznfs/7RDcaIZsIIzNijPu1kLditerzvzQdRsOgFQ3UWONcTkGA==
|
integrity sha512-aR8rqCIEvT3QYHuVEm67THRmNd9x25FTmU3Phi928FhzQJXDBO0N1/5d6qEE/wuDOgXMOoBgA98qsdYDIi2f+g==
|
||||||
dependencies:
|
dependencies:
|
||||||
"@livekit/components-core" "0.11.10"
|
"@livekit/components-core" "0.11.10"
|
||||||
clsx "2.1.1"
|
clsx "2.1.1"
|
||||||
|
|||||||
Reference in New Issue
Block a user