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:
parent
9a546b7ea0
commit
1548a5673f
7 changed files with 203 additions and 21 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue