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

View File

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