Add ability to toggle presenter by clicking name

This commit is contained in:
Robert Long
2021-08-26 11:03:48 -07:00
parent a4e8949907
commit 1661c5518b
5 changed files with 354 additions and 70 deletions

View File

@@ -48,6 +48,7 @@ export function Room({ manager }) {
leaveCall,
toggleMuteVideo,
toggleMuteAudio,
togglePresenter,
videoMuted,
audioMuted,
} = useVideoRoom(manager, roomId);
@@ -111,7 +112,10 @@ export function Room({ manager }) {
</div>
)}
{!loading && room && joined && participants.length > 0 && (
<VideoGrid participants={participants} />
<VideoGrid
participants={participants}
onClickNameTag={togglePresenter}
/>
)}
{!loading && room && joined && (
<div className={styles.footer}>