X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2FTizen.Multimedia.Recorder%2FRecorder%2FVideoRecorder.Capabilities.cs;h=0194cf57e58217a359712faf79144b933f00c750;hb=6a8d36d62d29c523bbd1e6eb92b6fd9bfadbef83;hp=7f1d3e09e255687272d96f5e29aa53aea3cfa12e;hpb=559676592d798bebf93db9d89bf1649eae06f8ab;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git diff --git a/src/Tizen.Multimedia.Recorder/Recorder/VideoRecorder.Capabilities.cs b/src/Tizen.Multimedia.Recorder/Recorder/VideoRecorder.Capabilities.cs index 7f1d3e0..0194cf5 100644 --- a/src/Tizen.Multimedia.Recorder/Recorder/VideoRecorder.Capabilities.cs +++ b/src/Tizen.Multimedia.Recorder/Recorder/VideoRecorder.Capabilities.cs @@ -23,6 +23,7 @@ using NativeHandle = Interop.RecorderHandle; namespace Tizen.Multimedia { + /// 4 public partial class VideoRecorder { private static IEnumerable _frontResolutions; @@ -46,6 +47,11 @@ namespace Tizen.Multimedia private static IEnumerable LoadVideoResolutions(CameraDevice device) { + if (!Features.IsSupported(RecorderFeatures.VideoRecorder)) + { + throw new NotSupportedException("Video Recorder is not supported."); + } + using (var camera = new Camera(device)) { Native.CreateVideo(camera.Handle, out var handle).ThrowIfError("Failed to get the resolutions"); @@ -60,10 +66,11 @@ namespace Tizen.Multimedia /// /// Gets the video resolutions that the current device supports. /// - /// http://tizen.org/feature/camera + /// http://tizen.org/feature/media.video_recording /// The camera device to retrieve the supported resolutions. /// A required feature is not supported. /// is invalid. + /// 4 public static IEnumerable GetSupportedVideoResolutions(CameraDevice device) { ValidationUtil.ValidateEnum(typeof(CameraDevice), device, nameof(device)); @@ -86,8 +93,9 @@ namespace Tizen.Multimedia /// /// Gets the video encoders that the current device supports. /// - /// http://tizen.org/feature/camera + /// http://tizen.org/feature/media.video_recording /// A required feature is not supported. + /// 4 public static IEnumerable GetSupportedVideoCodecs() => Capabilities.Value.SupportedVideoCodecs ?? throw new NotSupportedException("Video recording is not supported.");