Merge pull request #514 from vector-im/SimonBrandner/fix/name-11

This commit is contained in:
Šimon Brandner 2022-08-12 15:03:06 +02:00 committed by GitHub
commit 2608f9558c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 19 deletions

View file

@ -197,7 +197,6 @@ export function InCallView({
key={item.id}
item={item}
getAvatar={renderAvatar}
showName={items.length > 2 || item.focused}
audioOutputDevice={audioOutput}
audioContext={audioContext}
audioDestination={audioDestination}

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>
);

View file

@ -29,7 +29,6 @@ export function VideoTileContainer({
width,
height,
getAvatar,
showName,
audioOutputDevice,
audioContext,
audioDestination,
@ -43,7 +42,6 @@ export function VideoTileContainer({
audioMuted,
videoMuted,
localVolume,
noVideo,
speaking,
stream,
purpose,
@ -79,11 +77,9 @@ export function VideoTileContainer({
isLocal={isLocal}
speaking={speaking && !disableSpeakingIndicator}
audioMuted={audioMuted}
noVideo={noVideo}
videoMuted={videoMuted}
screenshare={purpose === SDPStreamMetadataPurpose.Screenshare}
name={rawDisplayName}
showName={showName}
ref={tileRef}
mediaRef={mediaRef}
avatar={getAvatar && getAvatar(member, width, height)}

View file

@ -22,9 +22,6 @@ function getCallFeedState(callFeed) {
member: callFeed ? callFeed.getMember() : null,
isLocal: callFeed ? callFeed.isLocal() : false,
speaking: callFeed ? callFeed.isSpeaking() : false,
noVideo: callFeed
? !callFeed.stream || callFeed.stream.getVideoTracks().length === 0
: true,
videoMuted: callFeed ? callFeed.isVideoMuted() : true,
audioMuted: callFeed ? callFeed.isAudioMuted() : true,
localVolume: callFeed ? callFeed.getLocalVolume() : 0,