dont update if processor already set
This commit is contained in:
@@ -151,7 +151,7 @@ export function useLiveKit(
|
|||||||
>(undefined);
|
>(undefined);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
// Fon't even try if we cannot blur on this platform
|
// Don't even try if we cannot blur on this platform
|
||||||
if (!blur) return;
|
if (!blur) return;
|
||||||
if (!room || videoTrackPromise.current) return;
|
if (!room || videoTrackPromise.current) return;
|
||||||
const update = async (): Promise<void> => {
|
const update = async (): Promise<void> => {
|
||||||
@@ -178,7 +178,10 @@ export function useLiveKit(
|
|||||||
if (publishCallback)
|
if (publishCallback)
|
||||||
room.off(RoomEvent.LocalTrackPublished, publishCallback);
|
room.off(RoomEvent.LocalTrackPublished, publishCallback);
|
||||||
|
|
||||||
if (videoTrack !== undefined) {
|
if (
|
||||||
|
videoTrack !== undefined &&
|
||||||
|
videoTrack.track?.getProcessor() === undefined
|
||||||
|
) {
|
||||||
if (showBackgroundBlur) {
|
if (showBackgroundBlur) {
|
||||||
logger.info("Blur: set blur");
|
logger.info("Blur: set blur");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user