diff --git a/src/main.tsx b/src/main.tsx index 946e0238..6cbf75fa 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -67,6 +67,6 @@ Initializer.initBeforeReact() ); }) .catch((e) => { - logger.error("Failed to initialize app", e); + logger.error(`Failed to initialize app ${e.message}`, e); root.render(e.message); }); diff --git a/src/state/MediaDevices.ts b/src/state/MediaDevices.ts index 0ad30bb9..e5b59468 100644 --- a/src/state/MediaDevices.ts +++ b/src/state/MediaDevices.ts @@ -9,7 +9,7 @@ import { combineLatest, filter, map, - merge, + // merge, pairwise, startWith, Subject, @@ -29,7 +29,7 @@ import { } from "../settings/settings"; import { type ObservableScope } from "./ObservableScope"; import { - outputDevice$ as controlledOutputSelection$, + // outputDevice$ as controlledOutputSelection$, availableOutputDevices$ as controlledAvailableOutputDevices$, } from "../controls"; import { getUrlParams } from "../UrlParams"; @@ -257,8 +257,8 @@ class AudioInput implements MediaDevice { public constructor( private readonly usingNames$: Behavior, private readonly scope: ObservableScope, - private readonly initialCallIntent: RTCCallIntent | undefined = undefined, - private platform: "android" | "ios" | "desktop" | undefined = undefined, + // private readonly initialCallIntent: RTCCallIntent | undefined = undefined, + // private platform: "android" | "ios" | "desktop" | undefined = undefined, ) { this.available$.subscribe((available) => { this.logger.info("[audio-input] available devices:", available); @@ -395,10 +395,7 @@ class ControlledAudioOutput implements MediaDevice< public readonly selected$ = this.scope.behavior( combineLatest( - [ - this.available$, - this.deviceSelection$, - ], + [this.available$, this.deviceSelection$], (available, preferredId) => { this.logger.debug( `selecting device: Preferred:${preferredId}: platform ${this.platform}, intent:${this.initialIntent}: Available: ${Array.from(available.keys()).join(",")}`,