Release 4.0.0-preview1-00243
[platform/core/csapi/tizenfx.git] / src / Tizen.Multimedia.Recorder / Recorder / Recorder.Capabilities.cs
index 7bb79f7..be0b9a7 100644 (file)
@@ -68,7 +68,15 @@ namespace Tizen.Multimedia
 
         private static Capabilities LoadCapabilities()
         {
-            Native.Create(out var handle).ThrowIfError("Failed to load the capabilities"); ;
+            var ret = Native.Create(out var handle);
+
+            if (ret == RecorderErrorCode.NotSupported)
+            {
+                throw new NotSupportedException("Audio recording is not supported.");
+            }
+
+            ret.ThrowIfError("Failed to load the capabilities");
+
             using (handle)
             {
                 return new Capabilities(handle);