Extend developer view with media debug information (#909)

* interceptor: add MediaStream feed debug interceptor

- interceptor displays nick name for default and nick name + user id if user gast
- interceptor displays track id  + media stream ids
This commit is contained in:
Enrico Schwendig
2023-02-15 16:04:05 +01:00
committed by GitHub
parent 9a546b7ea0
commit 1548a5673f
7 changed files with 203 additions and 21 deletions

View File

@@ -36,6 +36,7 @@ import { CallEvent } from "matrix-js-sdk/src/webrtc/call";
import styles from "./GroupCallInspector.module.css";
import { SelectInput } from "../input/SelectInput";
import { PosthogAnalytics } from "../PosthogAnalytics";
import { MediaViewer } from "../inspectors/MediaInspector";
interface InspectorContextState {
eventsByUserId?: { [userId: string]: SequenceDiagramMatrixEvent[] };
@@ -464,6 +465,7 @@ export function GroupCallInspector({
Sequence Diagrams
</button>
<button onClick={() => setCurrentTab("inspector")}>Inspector</button>
<button onClick={() => setCurrentTab("voip")}>Media</button>
</div>
{currentTab === "sequence-diagrams" && (
<SequenceDiagramViewer
@@ -487,6 +489,14 @@ export function GroupCallInspector({
style={{ height: "100%", overflowY: "scroll" }}
/>
)}
{currentTab === "voip" && (
<MediaViewer
client={client}
groupCall={groupCall}
userMediaFeeds={groupCall.userMediaFeeds}
screenshareFeeds={groupCall.screenshareFeeds}
/>
)}
</Resizable>
);
}