namespace Tizen.Multimedia
{
+ /// <since_tizen> 4 </since_tizen>
public partial class VideoRecorder
{
private static IEnumerable<Size> _frontResolutions;
private static IEnumerable<Size> 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");
/// <summary>
/// Gets the video resolutions that the current device supports.
/// </summary>
- /// <feature>http://tizen.org/feature/camera</feature>
- /// <param name="device">The camera device to retrieve the supported resolutions</param>
+ /// <feature>http://tizen.org/feature/media.video_recording</feature>
+ /// <param name="device">The camera device to retrieve the supported resolutions.</param>
/// <exception cref="NotSupportedException">A required feature is not supported.</exception>
/// <exception cref="ArgumentException"><paramref name="device"/> is invalid.</exception>
+ /// <since_tizen> 4 </since_tizen>
public static IEnumerable<Size> GetSupportedVideoResolutions(CameraDevice device)
{
ValidationUtil.ValidateEnum(typeof(CameraDevice), device, nameof(device));
/// <summary>
/// Gets the video encoders that the current device supports.
/// </summary>
- /// <feature>http://tizen.org/feature/camera</feature>
+ /// <feature>http://tizen.org/feature/media.video_recording</feature>
/// <exception cref="NotSupportedException">A required feature is not supported.</exception>
+ /// <since_tizen> 4 </since_tizen>
public static IEnumerable<RecorderVideoCodec> GetSupportedVideoCodecs()
=> Capabilities.Value.SupportedVideoCodecs ?? throw new NotSupportedException("Video recording is not supported.");