[ACR-962] Remove recorder privilege from some APIs 81/128281/4 accepted/tizen/unified/20170515.074604 submit/tizen/20170515.041223 tizen_4.0.m1_release
authorJeongmo Yang <jm80.yang@samsung.com>
Mon, 8 May 2017 10:20:51 +0000 (19:20 +0900)
committerJeongmo Yang <jm80.yang@samsung.com>
Wed, 10 May 2017 10:16:31 +0000 (19:16 +0900)
Actually, some APIs includes recorder_create_* does not access recording device,
but, it couldn't be done without recorder privilege.

[Version] 0.3.0
[Profile] Common
[Issue Type] Update
[Dependency module] N/A

Change-Id: Ia6ad999f7fa2e34f675a8c5ee8c9271d86998d2c
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
include/recorder.h
packaging/capi-media-recorder.spec

index 86ebf95..c0e2c4a 100644 (file)
@@ -369,8 +369,6 @@ typedef bool (*recorder_supported_video_encoder_cb)(recorder_video_codec_e codec
 /**
  * @brief Creates a recorder handle to record a video.
  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
- * @privlevel public
- * @privilege %http://tizen.org/privilege/recorder
  * @remarks You must release @a recorder using recorder_destroy(). \n
  * The @a camera handle also could be used for capturing images. \n
  * If the camera state was #CAMERA_STATE_CREATED, the preview format will be changed to the recommended preview format for recording.
@@ -378,6 +376,8 @@ typedef bool (*recorder_supported_video_encoder_cb)(recorder_video_codec_e codec
  * #CAMERA_STATE_CREATED -> #RECORDER_STATE_CREATED\n
  * #CAMERA_STATE_PREVIEW -> #RECORDER_STATE_READY\n
  * #CAMERA_STATE_CAPTURED -> #RECORDER_STATE_READY
+ * @remarks The privilege %http://tizen.org/privilege/recorder is not required since 4.0,\n
+ *          but it is required in all earlier versions.
  * @param[in]  camera       The handle to the camera
  * @param[out] recorder     A handle to the recorder
  * @return @c 0 on success, otherwise a negative error value
@@ -397,9 +397,9 @@ int recorder_create_videorecorder(camera_h camera, recorder_h *recorder);
 /**
  * @brief Creates a recorder handle to record an audio.
  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
- * @privlevel public
- * @privilege %http://tizen.org/privilege/recorder
  * @remarks You must release @a recorder using recorder_destroy().
+ * @remarks The privilege %http://tizen.org/privilege/recorder is not required since 4.0,\n
+ *          but it is required in all earlier versions.
  * @param[out]  recorder  A handle to the recorder
  * @return @c 0 on success, otherwise a negative error value
  * @retval #RECORDER_ERROR_NONE Successful
@@ -418,8 +418,6 @@ int recorder_create_audiorecorder(recorder_h *recorder);
 /**
  * @brief Destroys the recorder handle.
  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
- * @privlevel public
- * @privilege %http://tizen.org/privilege/recorder
  * @remarks The video recorder's camera handle is not released by this function.
  * @param[in]  recorder    The handle to the media recorder
  * @return @c 0 on success, otherwise a negative error value
@@ -440,8 +438,6 @@ int recorder_destroy(recorder_h recorder);
 /**
  * @brief Prepares the media recorder for recording.
  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
- * @privlevel public
- * @privilege %http://tizen.org/privilege/recorder
  * @remarks Before calling the function, it is required to properly set audio encoder (recorder_set_audio_encoder()),
  *          video encoder(recorder_set_video_encoder()) and file format (recorder_set_file_format()).
  * @param[in]  recorder  The handle to the media recorder
@@ -470,8 +466,6 @@ int recorder_prepare(recorder_h recorder);
 /**
  * @brief Resets the media recorder.
  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
- * @privlevel public
- * @privilege %http://tizen.org/privilege/recorder
  * @param[in]  recorder  The handle to the media recorder
  * @return @c 0 on success, otherwise a negative error value
  * @retval #RECORDER_ERROR_NONE Successful
index 4936912..4b1d3a0 100644 (file)
@@ -1,6 +1,6 @@
 Name:       capi-media-recorder
 Summary:    A Recorder API
-Version:    0.2.54
+Version:    0.3.0
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0