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:
Robin
2026-10-14 10:23:29 +02:00
committed by Timo
parent 1700e9fe20
commit f97dd2adab
8 changed files with 22 additions and 21 deletions
+5 -4
View File
@@ -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;
}