SEBSERV-204 removed "Audio Broadcast" button from Zoom Proc Window
This commit is contained in:
parent
fe45a0357c
commit
c043f0460e
2 changed files with 18 additions and 14 deletions
|
@ -93,12 +93,16 @@ public abstract class AbstractProctoringView implements RemoteProctoringView {
|
|||
final BroadcastActionState state =
|
||||
(BroadcastActionState) videoAction.getData(BroadcastActionState.KEY_NAME);
|
||||
|
||||
this.pageService.getPolyglotPageService().injectI18n(
|
||||
audioAction,
|
||||
state.video ? BROADCAST_AUDIO_ON_TEXT_KEY : BROADCAST_AUDIO_OFF_TEXT_KEY);
|
||||
this.pageService.getPolyglotPageService().injectI18n(
|
||||
videoAction,
|
||||
state.video ? BROADCAST_VIDEO_ON_TEXT_KEY : BROADCAST_VIDEO_OFF_TEXT_KEY);
|
||||
if (audioAction != null) {
|
||||
this.pageService.getPolyglotPageService().injectI18n(
|
||||
audioAction,
|
||||
state.video ? BROADCAST_AUDIO_ON_TEXT_KEY : BROADCAST_AUDIO_OFF_TEXT_KEY);
|
||||
}
|
||||
if (videoAction != null) {
|
||||
this.pageService.getPolyglotPageService().injectI18n(
|
||||
videoAction,
|
||||
state.video ? BROADCAST_VIDEO_ON_TEXT_KEY : BROADCAST_VIDEO_OFF_TEXT_KEY);
|
||||
}
|
||||
|
||||
state.video = !state.video;
|
||||
state.audio = state.video;
|
||||
|
|
|
@ -117,13 +117,13 @@ public class ZoomProctoringView extends AbstractProctoringView {
|
|||
|
||||
final BroadcastActionState broadcastActionState = new BroadcastActionState();
|
||||
if (proctoringSettings.enabledFeatures.contains(ProctoringFeature.BROADCAST)) {
|
||||
final Button broadcastAudioAction = widgetFactory.buttonLocalized(footer, BROADCAST_AUDIO_ON_TEXT_KEY);
|
||||
broadcastAudioAction.setLayoutData(new RowData());
|
||||
broadcastAudioAction.addListener(SWT.Selection, event -> toggleBroadcastAudio(
|
||||
proctoringWindowData.examId,
|
||||
proctoringWindowData.connectionData.roomName,
|
||||
broadcastAudioAction));
|
||||
broadcastAudioAction.setData(BroadcastActionState.KEY_NAME, broadcastActionState);
|
||||
// final Button broadcastAudioAction = widgetFactory.buttonLocalized(footer, BROADCAST_AUDIO_ON_TEXT_KEY);
|
||||
// broadcastAudioAction.setLayoutData(new RowData());
|
||||
// broadcastAudioAction.addListener(SWT.Selection, event -> toggleBroadcastAudio(
|
||||
// proctoringWindowData.examId,
|
||||
// proctoringWindowData.connectionData.roomName,
|
||||
// broadcastAudioAction));
|
||||
// broadcastAudioAction.setData(BroadcastActionState.KEY_NAME, broadcastActionState);
|
||||
|
||||
final Button broadcastVideoAction = widgetFactory.buttonLocalized(footer, BROADCAST_VIDEO_ON_TEXT_KEY);
|
||||
broadcastVideoAction.setLayoutData(new RowData());
|
||||
|
@ -131,7 +131,7 @@ public class ZoomProctoringView extends AbstractProctoringView {
|
|||
proctoringWindowData.examId,
|
||||
proctoringWindowData.connectionData.roomName,
|
||||
broadcastVideoAction,
|
||||
broadcastAudioAction));
|
||||
null));
|
||||
broadcastVideoAction.setData(BroadcastActionState.KEY_NAME, broadcastActionState);
|
||||
}
|
||||
if (proctoringSettings.enabledFeatures.contains(ProctoringFeature.ENABLE_CHAT)) {
|
||||
|
|
Loading…
Reference in a new issue