Add a 'waiting for video' state to media tiles

This will show if the call is waiting for media to connect (in practice
doesn't actually seem to happen all that often) but also show if the
media connection is lost, with the js-sdk change.

Requires https://github.com/matrix-org/matrix-js-sdk/pull/2880
Fixes: https://github.com/vector-im/element-call/issues/669
This commit is contained in:
David Baker
2022-11-15 16:13:33 +00:00
parent 6ef41b924d
commit 80f07a5454
7 changed files with 98 additions and 12 deletions

View File

@@ -21,7 +21,7 @@ import { RoomMember } from "matrix-js-sdk";
import { VideoGrid, useVideoGridLayout } from "./VideoGrid";
import { VideoTile } from "./VideoTile";
import { Button } from "../button";
import { TileDescriptor } from "../room/InCallView";
import { ConnectionState, TileDescriptor } from "../room/InCallView";
export default {
title: "VideoGrid",
@@ -41,6 +41,7 @@ export const ParticipantsTest = () => {
member: new RoomMember("!fake:room.id", `@user${i}:fake.dummy`),
focused: false,
presenter: false,
connectionState: ConnectionState.CONNECTED,
})),
[participantCount]
);
@@ -79,7 +80,7 @@ export const ParticipantsTest = () => {
key={item.id}
name={`User ${item.id}`}
disableSpeakingIndicator={items.length < 3}
hasFeed={true}
connectionState={ConnectionState.CONNECTED}
{...rest}
/>
)}