mirror of
https://github.com/vector-im/element-call.git
synced 2026-03-16 06:17:10 +00:00
test
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
@@ -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(",")}`,
|
||||
|
||||
Reference in New Issue
Block a user