This commit is contained in:
Valere
2026-03-13 13:12:11 +01:00
parent be3598730a
commit 83b343c413
2 changed files with 6 additions and 9 deletions

View File

@@ -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);
});

View File

@@ -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<DeviceLabel, SelectedAudioInputDevice> {
public constructor(
private readonly usingNames$: Behavior<boolean>,
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(",")}`,