Show name in 1:1 calls

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner
2022-08-12 10:33:59 +02:00
parent c09380644b
commit 8176d60d96
4 changed files with 6 additions and 19 deletions

View File

@@ -29,12 +29,10 @@ export const VideoTile = forwardRef(
isLocal,
speaking,
audioMuted,
noVideo,
videoMuted,
screenshare,
avatar,
name,
showName,
mediaRef,
onOptionsPress,
showOptions,
@@ -75,7 +73,7 @@ export const VideoTile = forwardRef(
)}
</div>
)}
{(videoMuted || noVideo) && (
{videoMuted && (
<>
<div className={styles.videoMutedOverlay} />
{avatar}
@@ -86,15 +84,12 @@ export const VideoTile = forwardRef(
<span>{`${name} is presenting`}</span>
</div>
) : (
(showName || audioMuted || (videoMuted && !noVideo)) && (
<div className={classNames(styles.infoBubble, styles.memberName)}>
{audioMuted && !(videoMuted && !noVideo) && <MicMutedIcon />}
{videoMuted && !noVideo && <VideoMutedIcon />}
{showName && <span title={name}>{name}</span>}
</div>
)
<div className={classNames(styles.infoBubble, styles.memberName)}>
{audioMuted && !videoMuted && <MicMutedIcon />}
{videoMuted && <VideoMutedIcon />}
<span title={name}>{name}</span>
</div>
)}
<video ref={mediaRef} playsInline disablePictureInPicture />
</animated.div>
);