*/
using NUnit.Framework;
+using System;
using System.Threading.Tasks;
namespace Tizen.Multimedia.Remoting.Tests
var tcs = new TaskCompletionSource<bool>();
var cameraSource = new MediaCameraSource();
- webRtc.AddSource(cameraSource);
+
+ try
+ {
+ webRtc.AddSource(cameraSource);
+ }
+ catch (NotSupportedException e)
+ {
+ Log.Info(WebRTCTestLog.Tag, e.ToString());
+ Assert.Pass("CameraSource is not supported");
+ }
cameraSource.VideoFrameRate = 10000;
-using System;
/*
* Copyright (c) 2022 Samsung Electronics Co., Ltd All Rights Reserved
*
*/
using NUnit.Framework;
+using System;
using System.Threading.Tasks;
namespace Tizen.Multimedia.Remoting.Tests
var tcs = new TaskCompletionSource<bool>();
var cameraSource = new MediaCameraSource();
- webRtc.AddSource(cameraSource);
+
+ try
+ {
+ webRtc.AddSource(cameraSource);
+ }
+ catch (NotSupportedException e)
+ {
+ Log.Info(WebRTCTestLog.Tag, e.ToString());
+ Assert.Pass("CameraSource is not supported");
+ }
cameraSource.VideoFrameRate = 10000;
var tcs = new TaskCompletionSource<bool>();
var cameraSource = new MediaCameraSource();
- webRtc.AddSource(cameraSource);
+
+ try
+ {
+ webRtc.AddSource(cameraSource);
+ }
+ catch (NotSupportedException e)
+ {
+ Log.Info(WebRTCTestLog.Tag, e.ToString());
+ Assert.Pass("CameraSource is not supported");
+ }
cameraSource.VideoFrameRate = 10000;
var tcs = new TaskCompletionSource<bool>();
var cameraSource = new MediaCameraSource();
- webRtc.AddSource(cameraSource);
+
+ try
+ {
+ webRtc.AddSource(cameraSource);
+ }
+ catch (NotSupportedException e)
+ {
+ Log.Info(WebRTCTestLog.Tag, e.ToString());
+ Assert.Pass("CameraSource is not supported");
+ }
cameraSource.VideoFrameRate = 10000;