SEBWIN-450: Added missing mapping for receive audio and video configuration values.
This commit is contained in:
		
							parent
							
								
									88faf4cafd
								
							
						
					
					
						commit
						8fb5519f4d
					
				
					 2 changed files with 24 additions and 0 deletions
				
			
		|  | @ -101,6 +101,12 @@ namespace SafeExamBrowser.Configuration.ConfigurationData.DataMapping | ||||||
| 				case Keys.Proctoring.Zoom.MeetingNumber: | 				case Keys.Proctoring.Zoom.MeetingNumber: | ||||||
| 					MapZoomMeetingNumber(settings, value); | 					MapZoomMeetingNumber(settings, value); | ||||||
| 					break; | 					break; | ||||||
|  | 				case Keys.Proctoring.Zoom.ReceiveAudio: | ||||||
|  | 					MapZoomReceiveAudio(settings, value); | ||||||
|  | 					break; | ||||||
|  | 				case Keys.Proctoring.Zoom.ReceiveVideo: | ||||||
|  | 					MapZoomReceiveVideo(settings, value); | ||||||
|  | 					break; | ||||||
| 				case Keys.Proctoring.Zoom.SendAudio: | 				case Keys.Proctoring.Zoom.SendAudio: | ||||||
| 					MapZoomSendAudio(settings, value); | 					MapZoomSendAudio(settings, value); | ||||||
| 					break; | 					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) | 		private void MapZoomSendAudio(AppSettings settings, object value) | ||||||
| 		{ | 		{ | ||||||
| 			if (value is bool send) | 			if (value is bool send) | ||||||
|  |  | ||||||
|  | @ -259,6 +259,8 @@ namespace SafeExamBrowser.Configuration.ConfigurationData | ||||||
| 				internal const string AudioMuted = "zoomAudioMuted"; | 				internal const string AudioMuted = "zoomAudioMuted"; | ||||||
| 				internal const string Enabled = "zoomEnable"; | 				internal const string Enabled = "zoomEnable"; | ||||||
| 				internal const string MeetingNumber = "zoomRoom"; | 				internal const string MeetingNumber = "zoomRoom"; | ||||||
|  | 				internal const string ReceiveAudio = "zoomReceiveAudio"; | ||||||
|  | 				internal const string ReceiveVideo = "zoomReceiveVideo"; | ||||||
| 				internal const string SendAudio = "zoomSendAudio"; | 				internal const string SendAudio = "zoomSendAudio"; | ||||||
| 				internal const string SendVideo = "zoomSendVideo"; | 				internal const string SendVideo = "zoomSendVideo"; | ||||||
| 				internal const string Signature = "zoomToken"; | 				internal const string Signature = "zoomToken"; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Damian Büchel
						Damian Büchel