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
commit 1548a5673f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 203 additions and 21 deletions

View file

@ -25,7 +25,7 @@ import { ReactComponent as VideoMutedIcon } from "../icons/VideoMuted.svg";
import { AudioButton, FullscreenButton } from "../button/Button";
import { ConnectionState } from "../room/useGroupCall";
import { CallFeedDebugInfo } from "./useCallFeed";
import { useShowCallFeedDebugInfo } from "../settings/useSetting";
import { useShowInspector } from "../settings/useSetting";
interface Props {
name: string;
@ -76,7 +76,7 @@ export const VideoTile = forwardRef<HTMLDivElement, Props>(
},
ref
) => {
const [showCallFeedDebugInfo] = useShowCallFeedDebugInfo();
const [showInspector] = useShowInspector();
const { t } = useTranslation();
const toolbarButtons: JSX.Element[] = [];
@ -130,7 +130,7 @@ export const VideoTile = forwardRef<HTMLDivElement, Props>(
ref={ref}
{...rest}
>
{showCallFeedDebugInfo && (
{showInspector && (
<div className={classNames(styles.debugInfo)}>
{JSON.stringify(debugInfo)}
</div>