This commit is contained in:
Timo
2025-06-04 15:54:19 +02:00
parent 6000b9590e
commit 33f0934a14
3 changed files with 1 additions and 9 deletions

View File

@@ -8,11 +8,9 @@ Please see LICENSE in the repository root for full details.
import {
type FC,
createContext,
useCallback,
useContext,
useEffect,
useMemo,
useRef,
useState,
type JSX,
} from "react";
@@ -186,7 +184,7 @@ function useMediaDeviceHandle(
]);
const availablePrint = Array.from(available.entries()).map(
([id, label]) =>
`id:${id === "" ? '""' : id} label:${(label as any).name}\n`,
`id:${id === "" ? '""' : id} label:${(label as { name?: string }).name}\n`,
);
logger.info(
`Media devices changed.\nkind ${kind}\n(deviceObserver$ updated): ${availablePrint}`,

View File

@@ -106,8 +106,6 @@ function mockMediaDevices(
videoInput: mockDevices(
camera ? new Map([[mockCamera.deviceId, mockCamera]]) : new Map(),
),
startUsingDeviceNames: (): void => {},
stopUsingDeviceNames: (): void => {},
};
}

View File

@@ -126,8 +126,6 @@ test("will use the correct device", () => {
useAsEarpiece: false,
},
videoInput: deviceStub,
startUsingDeviceNames: () => {},
stopUsingDeviceNames: () => {},
}}
>
<TestComponentWrapper />
@@ -161,8 +159,6 @@ test("will use the pan if earpiece is selected", async () => {
useAsEarpiece: true,
},
videoInput: deviceStub,
startUsingDeviceNames: () => {},
stopUsingDeviceNames: () => {},
}}
>
<TestComponentWrapper />