diff --git a/SafeExamBrowser.Configuration/ConfigurationData/DataProcessor.cs b/SafeExamBrowser.Configuration/ConfigurationData/DataProcessor.cs index ffb84b28..45790129 100644 --- a/SafeExamBrowser.Configuration/ConfigurationData/DataProcessor.cs +++ b/SafeExamBrowser.Configuration/ConfigurationData/DataProcessor.cs @@ -12,6 +12,7 @@ using System.IO; using System.Security.Cryptography; using SafeExamBrowser.Settings; using SafeExamBrowser.Settings.Applications; +using SafeExamBrowser.Settings.Proctoring; namespace SafeExamBrowser.Configuration.ConfigurationData { @@ -68,6 +69,16 @@ namespace SafeExamBrowser.Configuration.ConfigurationData private void InitializeProctoringSettings(AppSettings settings) { settings.Proctoring.Enabled = settings.Proctoring.JitsiMeet.Enabled || settings.Proctoring.Zoom.Enabled; + + if (settings.Proctoring.JitsiMeet.Enabled && !settings.Proctoring.JitsiMeet.ReceiveVideo) + { + settings.Proctoring.WindowVisibility = WindowVisibility.Hidden; + } + + if (settings.Proctoring.Zoom.Enabled && !settings.Proctoring.Zoom.ReceiveVideo) + { + settings.Proctoring.WindowVisibility = WindowVisibility.Hidden; + } } private void RemoveLegacyBrowsers(AppSettings settings)