From 435a7d0adbc3067ee725ae216d9fc80060ff6ec9 Mon Sep 17 00:00:00 2001 From: Timo Date: Tue, 20 May 2025 16:37:14 +0200 Subject: [PATCH] earpice -> earpiece --- src/livekit/MediaDevicesContext.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/livekit/MediaDevicesContext.tsx b/src/livekit/MediaDevicesContext.tsx index fac2fe90..2bd87ee8 100644 --- a/src/livekit/MediaDevicesContext.tsx +++ b/src/livekit/MediaDevicesContext.tsx @@ -80,7 +80,7 @@ export interface MediaDevices extends Omit { * This implies the following * - hide any input devices (they do not work anyhow on ios) * - Show a button to show the native output picker instead. - * - Only show the earpice toggle option if the earpiece is available: + * - Only show the earpiece toggle option if the earpiece is available: * `setAvailableOutputDevices$.includes((d)=>d.forEarpiece)` */ export const iosDeviceMenu$ = alwaysShowIphoneEarpieceSetting.value$.pipe( @@ -362,10 +362,10 @@ function useControlledOutput(): MediaDeviceHandle { const selectedId = useSelectedId(available, preferredId); - const [asEarpice, setAsEarpiece] = useState(false); + const [asEarpiece, setAsEarpiece] = useState(false); useEffect(() => { - // In earpice mode we just sent the EARPIECE_CONFIG_ID to the native code + // In earpiece mode we just sent the EARPIECE_CONFIG_ID to the native code // This only happens on ios where we use the native picker. // So this only is needed so that ios can know if the proximity sensor should be used or not. if (selectedId) window.controls.onOutputDeviceSelect?.(selectedId); @@ -378,9 +378,9 @@ function useControlledOutput(): MediaDeviceHandle { selectedId, selectedGroupId: undefined, select: setPreferredId, - useAsEarpiece: asEarpice, + useAsEarpiece: asEarpiece, }), - [available, selectedId, setPreferredId, asEarpice], + [available, selectedId, setPreferredId, asEarpiece], ); }