RecorderDeviceState state = Recorder.GetDeviceState(RecorderType.Audio);
Assert.AreEqual(state, RecorderDeviceState.Idle, "The device should be in idle state");
- state = Recorder.GetDeviceState(RecorderType.Video);
- Assert.AreEqual(state, RecorderDeviceState.Idle, "The device should be in idle state");
+ try
+ {
+ state = Recorder.GetDeviceState(RecorderType.Video);
+ Assert.AreEqual(state, RecorderDeviceState.Idle, "The device should be in idle state");
+ }
+ catch (NotSupportedException) when (FeatureChecker.IsSupported(Features.VideoRecorder) == false)
+ {
+ Log.Info("Tizen.Recorder.Tests", "Video recorder feature is not supported. We'll test with audio continuously.");
+ }
AudioRecorder.Prepare();
AudioRecorder.TimeLimit = 5;