mirror of
https://github.com/vector-im/element-call.git
synced 2026-08-29 21:15:19 +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;
|
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),
|
||||||
|
|||||||
@@ -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 &&
|
||||||
|
|||||||
Reference in New Issue
Block a user