浏览代码

fix(recording-label) fix recording label behavior

master
hmuresan 4 年前
父节点
当前提交
dda1f3c5ba
共有 1 个文件被更改,包括 12 次插入3 次删除
  1. 12
    3
      react/features/conference/components/web/ConferenceInfo.js

+ 12
- 3
react/features/conference/components/web/ConferenceInfo.js 查看文件

120
                     }
120
                     }
121
                     { _showParticipantCount && <ParticipantsCount /> }
121
                     { _showParticipantCount && <ParticipantsCount /> }
122
                     <E2EELabel />
122
                     <E2EELabel />
123
+                    {_hideRecordingLabel && (
124
+                        <>
125
+                            <RecordingLabel mode = { JitsiRecordingConstants.mode.FILE } />
126
+                            <RecordingLabel mode = { JitsiRecordingConstants.mode.STREAM } />
127
+                            <LocalRecordingLabel />
128
+                        </>
129
+                    )}
123
                     <TranscribingLabel />
130
                     <TranscribingLabel />
124
                     <VideoQualityLabel />
131
                     <VideoQualityLabel />
125
                     <InsecureRoomNameLabel />
132
                     <InsecureRoomNameLabel />
148
         hideConferenceTimer,
155
         hideConferenceTimer,
149
         hideConferenceSubject,
156
         hideConferenceSubject,
150
         hideParticipantsStats,
157
         hideParticipantsStats,
151
-        hideRecordingLabel
158
+        hideRecordingLabel,
159
+        iAmRecorder
152
     } = state['features/base/config'];
160
     } = state['features/base/config'];
153
     const { clientWidth } = state['features/base/responsive-ui'];
161
     const { clientWidth } = state['features/base/responsive-ui'];
154
 
162
 
163
+    const shouldHideRecordingLabel = hideRecordingLabel || iAmRecorder;
155
     const fileRecordingStatus = getSessionStatusToShow(state, JitsiRecordingConstants.mode.FILE);
164
     const fileRecordingStatus = getSessionStatusToShow(state, JitsiRecordingConstants.mode.FILE);
156
     const streamRecordingStatus = getSessionStatusToShow(state, JitsiRecordingConstants.mode.STREAM);
165
     const streamRecordingStatus = getSessionStatusToShow(state, JitsiRecordingConstants.mode.STREAM);
157
     const isFileRecording = fileRecordingStatus ? fileRecordingStatus !== JitsiRecordingConstants.status.OFF : false;
166
     const isFileRecording = fileRecordingStatus ? fileRecordingStatus !== JitsiRecordingConstants.status.OFF : false;
162
     return {
171
     return {
163
         _hideConferenceNameAndTimer: clientWidth < 300,
172
         _hideConferenceNameAndTimer: clientWidth < 300,
164
         _hideConferenceTimer: Boolean(hideConferenceTimer),
173
         _hideConferenceTimer: Boolean(hideConferenceTimer),
165
-        _hideRecordingLabel: hideRecordingLabel,
174
+        _hideRecordingLabel: shouldHideRecordingLabel,
166
         _fullWidth: state['features/video-layout'].tileViewEnabled,
175
         _fullWidth: state['features/video-layout'].tileViewEnabled,
167
         _showParticipantCount: participantCount > 2 && !hideParticipantsStats,
176
         _showParticipantCount: participantCount > 2 && !hideParticipantsStats,
168
         _subject: hideConferenceSubject ? '' : getConferenceName(state),
177
         _subject: hideConferenceSubject ? '' : getConferenceName(state),
169
         _visible: isToolboxVisible(state),
178
         _visible: isToolboxVisible(state),
170
-        _recordingLabel: (isFileRecording || isStreamRecording || isEngaged) && !hideRecordingLabel
179
+        _recordingLabel: (isFileRecording || isStreamRecording || isEngaged) && !shouldHideRecordingLabel
171
     };
180
     };
172
 }
181
 }
173
 
182
 

正在加载...
取消
保存