{
};
render() {
- const videoClasses = {
- mx_VideoFeed: true,
+ const { pipMode, primary, feed } = this.props;
+
+ const wrapperClasses = classnames("mx_VideoFeed", {
mx_VideoFeed_voice: this.state.videoMuted,
- mx_VideoFeed_video: !this.state.videoMuted,
- mx_VideoFeed_mirror: (
- this.props.feed.isLocal() &&
- SettingsStore.getValue('VideoView.flipVideoHorizontally')
- ),
- };
+ });
+ const micIconClasses = classnames("mx_VideoFeed_mic", {
+ mx_VideoFeed_mic_muted: this.state.audioMuted,
+ mx_VideoFeed_mic_unmuted: !this.state.audioMuted,
+ });
- const { pipMode, primary } = this.props;
+ let micIcon;
+ if (feed.purpose !== SDPStreamMetadataPurpose.Screenshare && !pipMode) {
+ micIcon = (
+
+ );
+ }
+ let content;
if (this.state.videoMuted) {
const member = this.props.feed.getMember();
+
let avatarSize;
if (pipMode && primary) avatarSize = 76;
else if (pipMode && !primary) avatarSize = 16;
else if (!pipMode && primary) avatarSize = 160;
else; // TBD
- return (
-
-
-
+ content =(
+
);
} else {
- return (
-
+ const videoClasses = classnames("mx_VideoFeed_video", {
+ mx_VideoFeed_video_mirror: (
+ this.props.feed.isLocal() &&
+ SettingsStore.getValue('VideoView.flipVideoHorizontally')
+ ),
+ });
+
+ content= (
+
);
}
+
+ return (
+
+ { micIcon }
+ { content }
+
+ );
}
}