diff --git a/SafeExamBrowser.Configuration/ConfigurationData/DataMapping/ProctoringDataMapper.cs b/SafeExamBrowser.Configuration/ConfigurationData/DataMapping/ProctoringDataMapper.cs index c270a095..77f600f2 100644 --- a/SafeExamBrowser.Configuration/ConfigurationData/DataMapping/ProctoringDataMapper.cs +++ b/SafeExamBrowser.Configuration/ConfigurationData/DataMapping/ProctoringDataMapper.cs @@ -101,6 +101,12 @@ namespace SafeExamBrowser.Configuration.ConfigurationData.DataMapping case Keys.Proctoring.Zoom.MeetingNumber: MapZoomMeetingNumber(settings, value); break; + case Keys.Proctoring.Zoom.ReceiveAudio: + MapZoomReceiveAudio(settings, value); + break; + case Keys.Proctoring.Zoom.ReceiveVideo: + MapZoomReceiveVideo(settings, value); + break; case Keys.Proctoring.Zoom.SendAudio: MapZoomSendAudio(settings, value); break; @@ -365,6 +371,22 @@ namespace SafeExamBrowser.Configuration.ConfigurationData.DataMapping } } + private void MapZoomReceiveAudio(AppSettings settings, object value) + { + if (value is bool receive) + { + settings.Proctoring.Zoom.ReceiveAudio = receive; + } + } + + private void MapZoomReceiveVideo(AppSettings settings, object value) + { + if (value is bool receive) + { + settings.Proctoring.Zoom.ReceiveVideo = receive; + } + } + private void MapZoomSendAudio(AppSettings settings, object value) { if (value is bool send) diff --git a/SafeExamBrowser.Configuration/ConfigurationData/Keys.cs b/SafeExamBrowser.Configuration/ConfigurationData/Keys.cs index 52d3cde4..44eb3188 100644 --- a/SafeExamBrowser.Configuration/ConfigurationData/Keys.cs +++ b/SafeExamBrowser.Configuration/ConfigurationData/Keys.cs @@ -259,6 +259,8 @@ namespace SafeExamBrowser.Configuration.ConfigurationData internal const string AudioMuted = "zoomAudioMuted"; internal const string Enabled = "zoomEnable"; internal const string MeetingNumber = "zoomRoom"; + internal const string ReceiveAudio = "zoomReceiveAudio"; + internal const string ReceiveVideo = "zoomReceiveVideo"; internal const string SendAudio = "zoomSendAudio"; internal const string SendVideo = "zoomSendVideo"; internal const string Signature = "zoomToken";