mirror of
https://github.com/vector-im/element-call.git
synced 2026-03-19 06:20:25 +00:00
try "mute with audio capture defaults" again
Signed-off-by: Timo K <toger5@hotmail.de>
This commit is contained in:
@@ -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),
|
||||
|
||||
@@ -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 &&
|
||||
|
||||
Reference in New Issue
Block a user