frontend: Remove unnecessary feature flags for recording and activity panel in VideoRoomComponent

This commit is contained in:
Carlos Santos 2025-03-19 09:00:55 +01:00
parent a699bb3343
commit 60319cdafa
2 changed files with 2 additions and 6 deletions

View File

@ -7,17 +7,16 @@
[prejoinDisplayParticipantName]="false"
[videoEnabled]="featureFlags.videoEnabled"
[audioEnabled]="featureFlags.audioEnabled"
[recordingStreamBaseUrl]="'/meet/api/v1/recordings/'"
[toolbarCameraButton]="featureFlags.showCamera"
[toolbarMicrophoneButton]="featureFlags.showMicrophone"
[toolbarScreenshareButton]="featureFlags.showScreenShare"
[toolbarChatPanelButton]="featureFlags.showChat"
[toolbarRecordingButton]="featureFlags.showRecording"
[toolbarBroadcastingButton]="false"
[activitiesPanelRecordingActivity]="featureFlags.showRecording"
[activitiesPanelRecordingActivity]="false"
[activitiesPanelBroadcastingActivity]="false"
[toolbarBackgroundEffectsButton]="featureFlags.showBackgrounds"
[toolbarActivitiesPanelButton]="featureFlags.showActivityPanel"
[toolbarActivitiesPanelButton]="false"
(onTokenRequested)="onTokenRequested($event)"
(onParticipantConnected)="onParticipantConnected($event)"
(onParticipantLeft)="onParticipantLeft($event)"

View File

@ -32,14 +32,12 @@ export class VideoRoomComponent implements OnInit, OnDestroy {
chatPreferences: ChatPreferences = { enabled: true };
recordingPreferences: RecordingPreferences = { enabled: true };
virtualBackgroundPreferences: VirtualBackgroundPreferences = { enabled: true };
featureFlags = {
videoEnabled: true,
audioEnabled: true,
showMicrophone: true,
showCamera: true,
showScreenShare: true,
showActivityPanel: true,
showPrejoin: true,
showChat: true,
showRecording: true,
@ -178,7 +176,6 @@ export class VideoRoomComponent implements OnInit, OnDestroy {
this.featureFlags.showChat = this.chatPreferences.enabled;
this.featureFlags.showRecording = this.recordingPreferences.enabled;
this.featureFlags.showActivityPanel = this.recordingPreferences.enabled;
this.featureFlags.showBackgrounds = this.virtualBackgroundPreferences.enabled;
}