Merge pull request #1123 from robintown/connection-indicators

Hide connection quality indicators behind a developer setting
This commit is contained in:
Robin
2023-06-16 12:56:36 -04:00
committed by GitHub
5 changed files with 31 additions and 2 deletions

View File

@@ -53,7 +53,10 @@ import {
useVideoGridLayout,
TileDescriptor,
} from "../video-grid/VideoGrid";
import { useShowInspector } from "../settings/useSetting";
import {
useShowInspector,
useShowConnectionStats,
} from "../settings/useSetting";
import { useModalTriggerState } from "../Modal";
import { PosthogAnalytics } from "../analytics/PosthogAnalytics";
import { useUrlParams } from "../UrlParams";
@@ -152,6 +155,7 @@ export function InCallView({
);
const [showInspector] = useShowInspector();
const [showConnectionStats] = useShowConnectionStats();
const { hideScreensharing } = useUrlParams();
@@ -255,6 +259,7 @@ export function InCallView({
key={maximisedParticipant.id}
data={maximisedParticipant.data}
showSpeakingIndicator={false}
showConnectionStats={showConnectionStats}
/>
);
}
@@ -268,6 +273,7 @@ export function InCallView({
{(props) => (
<VideoTile
showSpeakingIndicator={items.length > 2}
showConnectionStats={showConnectionStats}
{...props}
ref={props.ref as Ref<HTMLDivElement>}
/>