more cleanup

Signed-off-by: Timo K <toger5@hotmail.de>
This commit is contained in:
Timo K
2025-07-03 16:23:57 +02:00
parent 2752df1c15
commit c165f5d2e4
3 changed files with 1 additions and 8 deletions

View File

@@ -362,9 +362,6 @@ export function useLivekit(
devices.audioInput.selected$ devices.audioInput.selected$
.pipe(switchMap((device) => device?.hardwareDeviceChange$ ?? NEVER)) .pipe(switchMap((device) => device?.hardwareDeviceChange$ ?? NEVER))
.subscribe(() => { .subscribe(() => {
// if (platform === "ios") {
// return;
// }
const activeMicTrack = Array.from( const activeMicTrack = Array.from(
room.localParticipant.audioTrackPublications.values(), room.localParticipant.audioTrackPublications.values(),
).find((d) => d.source === Track.Source.Microphone)?.track; ).find((d) => d.source === Track.Source.Microphone)?.track;

View File

@@ -8,7 +8,6 @@ Please see LICENSE in the repository root for full details.
import { import {
type Dispatch, type Dispatch,
type SetStateAction, type SetStateAction,
use,
useCallback, useCallback,
useEffect, useEffect,
useMemo, useMemo,

View File

@@ -337,10 +337,7 @@ class ControlledAudioOutput
} }
}); });
this.available$.subscribe((available) => { this.available$.subscribe((available) => {
logger.info( logger.info("[controlled-output] available devices:", available);
"[controlled-output] available controlled devices:",
available,
);
}); });
this.availableRaw$.subscribe((availableRaw) => { this.availableRaw$.subscribe((availableRaw) => {
logger.info("[controlled-output] available raw devices:", availableRaw); logger.info("[controlled-output] available raw devices:", availableRaw);