mirror of
https://github.com/vector-im/element-call.git
synced 2026-10-16 23:45:50 +00:00
Show the whole transport in debug UI and logs
A transport may soon carry a LiveKit SFU `url` instead of, or as well as, a `livekit_service_url`, so a service URL alone no longer identifies it. Pass the whole transport to the tiles' debug stats and print it as JSON in log lines instead of picking out the service URL. Element Call's media view models carry the member's raw transport from the SDK's TransportMetadata to the tiles.
This commit is contained in:
@@ -18,6 +18,7 @@ import {
|
||||
trackBySource$,
|
||||
type VideoMediaTrack,
|
||||
} from "@element-hq/matrixrtc-sdk";
|
||||
import { type Transport } from "matrix-js-sdk/lib/matrixrtc";
|
||||
import {
|
||||
combineLatest,
|
||||
distinctUntilChanged,
|
||||
@@ -56,10 +57,10 @@ export interface BaseMemberMediaViewModel extends BaseMediaViewModel {
|
||||
*/
|
||||
video$: Behavior<VideoMediaTrack | undefined>;
|
||||
/**
|
||||
* The URL of the transport on which this member should be publishing.
|
||||
* Exposed for debugging.
|
||||
* The transport on which this member should be publishing, as it appears
|
||||
* in the membership. Exposed for debugging.
|
||||
*/
|
||||
transport$: Behavior<UnstableLivekitTransport | undefined>;
|
||||
transport$: Behavior<Transport | undefined>;
|
||||
/**
|
||||
* Whether there should be a warning that this media is unencrypted.
|
||||
*/
|
||||
@@ -74,7 +75,7 @@ export interface MemberMediaInputs extends BaseMediaViewModel {
|
||||
member: MediaMember;
|
||||
audioSource: "microphone" | "screenShareAudio";
|
||||
videoSource: "camera" | "screenShare";
|
||||
focusUrl$: Behavior<string | undefined>;
|
||||
transport$: Behavior<Transport | undefined>;
|
||||
encryptionSystem: EncryptionSystem;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user