try "mute with audio capture defaults" again

Signed-off-by: Timo K <toger5@hotmail.de>
This commit is contained in:
Timo K
2025-07-03 15:07:09 +02:00
parent ec1bbca60a
commit f1b9594a1e
2 changed files with 1 additions and 14 deletions

View File

@@ -245,9 +245,7 @@ export function useLivekit(
audioMuteUpdating.current = true; audioMuteUpdating.current = true;
trackPublication = await participant.setMicrophoneEnabled( trackPublication = await participant.setMicrophoneEnabled(
buttonEnabled.current.audio, buttonEnabled.current.audio,
// platform === "ios" room.options.audioCaptureDefaults,
// ? undefined
// : room.options.audioCaptureDefaults,
); );
audioMuteUpdating.current = false; audioMuteUpdating.current = false;
break; break;
@@ -329,10 +327,6 @@ export function useLivekit(
selected$: Observable<SelectedDevice | undefined>, selected$: Observable<SelectedDevice | undefined>,
): Subscription => ): Subscription =>
selected$.subscribe((device) => { selected$.subscribe((device) => {
// let d = device;
// if (controlledAudioDevices && kind === "audiooutput") {
// d = { id: "default" };
// }
logger.warn( logger.warn(
"[LivekitRoom] syncDevice room.getActiveDevice(kind) !== d.id :", "[LivekitRoom] syncDevice room.getActiveDevice(kind) !== d.id :",
room.getActiveDevice(kind), room.getActiveDevice(kind),

View File

@@ -114,13 +114,6 @@ export function useAudioContext<S extends string>(
// Update the sink ID whenever we change devices. // Update the sink ID whenever we change devices.
useEffect(() => { useEffect(() => {
logger.info(
"setSinkId hook:",
`"setSinkId" in audioContext`,
audioContext && "setSinkId" in audioContext,
`!controlledAudioDevices`,
!controlledAudioDevices,
);
if ( if (
audioContext && audioContext &&
"setSinkId" in audioContext && "setSinkId" in audioContext &&