* @remarks After being called, recording data is discarded and not written in the recording file. Also the state of recorder is not changed.
* @param[in] type The imitation type
* @param[in] user_data The user data passed from the callback registration function
- * @pre You have to register a callback using recorder_set_recording_limit_reached_cb().
- * @see recorder_set_recording_status_cb()
- * @see recorder_set_recording_limit_reached_cb()
- * @see recorder_unset_recording_limit_reached_cb()
+ * @pre You have to register a callback using legacy_recorder_set_recording_limit_reached_cb().
+ * @see legacy_recorder_set_recording_status_cb()
+ * @see legacy_recorder_set_recording_limit_reached_cb()
+ * @see legacy_recorder_unset_recording_limit_reached_cb()
*/
typedef void (*recorder_recording_limit_reached_cb)(recorder_recording_limit_type_e type, void *user_data);
* @param[in] elapsed_time The time of the recording (milliseconds)
* @param[in] file_size The size of the recording file (KB)
* @param[in] user_data The user data passed from the callback registration function
- * @pre recorder_start() will invoke this callback if you register it using recorder_set_recording_status_cb().
- * @see recorder_set_recording_status_cb()
- * @see recorder_unset_recording_status_cb()
- * @see recorder_start()
+ * @pre legacy_recorder_start() will invoke this callback if you register it using legacy_recorder_set_recording_status_cb().
+ * @see legacy_recorder_set_recording_status_cb()
+ * @see legacy_recorder_unset_recording_status_cb()
+ * @see legacy_recorder_start()
*/
typedef void (*recorder_recording_status_cb)(unsigned long long elapsed_time, unsigned long long file_size, void *user_data);
* @param[in] current The current state of the recorder
* @param[in] by_policy @c true if the state is changed by policy, otherwise @c false if the state is not changed
* @param[in] user_data The user data passed from the callback registration function
- * @pre This function is required to register a callback using recorder_set_state_changed_cb().
- * @see recorder_set_state_changed_cb()
- * @see recorder_prepare()
- * @see recorder_unprepare()
- * @see recorder_start()
- * @see recorder_pause()
- * @see recorder_commit()
- * @see recorder_cancel()
+ * @pre This function is required to register a callback using legacy_recorder_set_state_changed_cb().
+ * @see legacy_recorder_set_state_changed_cb()
+ * @see legacy_recorder_prepare()
+ * @see legacy_recorder_unprepare()
+ * @see legacy_recorder_start()
+ * @see legacy_recorder_pause()
+ * @see legacy_recorder_commit()
+ * @see legacy_recorder_cancel()
*/
typedef void (*recorder_state_changed_cb)(recorder_state_e previous, recorder_state_e current, bool by_policy, void *user_data);
* @param[in] previous The previous state of the recorder
* @param[in] current The current state of the recorder
* @param[in] user_data The user data passed from the callback registration function
- * @see recorder_set_interrupted_cb()
+ * @see legacy_recorder_set_interrupted_cb()
*/
typedef void (*recorder_interrupted_cb)(recorder_policy_e policy, recorder_state_e previous, recorder_state_e current, void *user_data);
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
* @remarks The callback function holds the same buffer that will be recorded. \n
* So if the user changes the buffer, the result file will contain the buffer.
- * @remarks The callback is called via internal thread of Frameworks, therefore do not invoke UI API, recorder_unprepare(), recorder_commit() and recorder_cancel() in callback.
+ * @remarks The callback is called via internal thread of Frameworks, therefore do not invoke UI API, legacy_recorder_unprepare(), legacy_recorder_commit() and legacy_recorder_cancel() in callback.
* @param[in] stream The audio stream data
* @param[in] size The size of the stream data
* @param[in] format The audio format
* @param[in] channel The number of the channel
* @param[in] timestamp The timestamp of the stream buffer (in msec)
* @param[in] user_data The user data passed from the callback registration function
- * @see recorder_set_audio_stream_cb()
+ * @see legacy_recorder_set_audio_stream_cb()
*/
-typedef void (*recorder_audio_stream_cb)(void* stream, int size, audio_sample_type_e format, int channel, unsigned int timestamp, void *user_data);
+typedef void (*recorder_audio_stream_cb)(void *stream, int size, audio_sample_type_e format, int channel, unsigned int timestamp, void *user_data);
+
+/**
+ * @brief Called when muxed stream data was being delivered just before storing in the recorded file.
+ * @since_tizen 4.0
+ * @remarks The callback function holds the same buffer that will be recorded, \n
+ * but there is no effect on recorded file although user changes data in callback.
+ * @param[in] stream The muxed stream data
+ * @param[in] size The size of the stream data
+ * @param[in] offset The offset of the stream data
+ * @param[in] user_data The user data passed from the callback registration function
+ * @see legacy_recorder_set_muxed_stream_cb()
+ */
+typedef void (*recorder_muxed_stream_cb)(void *stream, int size, unsigned long long offset, void *user_data);
/**
* @brief Called once for each supported video resolution.
* @param[in] user_data The user data passed from the foreach function
* @return @c true to continue with the next iteration of the loop, \n otherwise @c false to break out of the loop
* @pre recorder_foreach_supported_video_resolution() will invoke this callback.
- * @see recorder_foreach_supported_video_resolution()
+ * @see legacy_recorder_foreach_supported_video_resolution()
*/
typedef bool (*recorder_supported_video_resolution_cb)(int width, int height, void *user_data);
* @param[in] error The error code
* @param[in] current_state The current state of the recorder
* @param[in] user_data The user data passed from the callback registration function
- * @pre This callback function is invoked if you register this callback using recorder_set_error_cb().
- * @see recorder_set_error_cb()
- * @see recorder_unset_error_cb()
+ * @pre This callback function is invoked if you register this callback using legacy_recorder_set_error_cb().
+ * @see legacy_recorder_set_error_cb()
+ * @see legacy_recorder_unset_error_cb()
*/
typedef void (*recorder_error_cb)(recorder_error_e error, recorder_state_e current_state, void *user_data);
* @param[in] format The format of recording files
* @param[in] user_data The user data passed from the foreach function
* @return @c true to continue with the next iteration of the loop, \n otherwise @c false to break out of the loop
- * @pre recorder_foreach_supported_file_format() will invoke this callback.
- * @see recorder_foreach_supported_file_format()
+ * @pre legacy_recorder_foreach_supported_file_format() will invoke this callback.
+ * @see legacy_recorder_foreach_supported_file_format()
*/
typedef bool (*recorder_supported_file_format_cb)(recorder_file_format_e format, void *user_data);
* @param[in] codec The codec of audio encoder
* @param[in] user_data The user data passed from the foreach function
* @return @c true to continue with the next iteration of the loop, \n otherwise @c false to break out of the loop
- * @pre recorder_foreach_supported_audio_encoder() will invoke this callback.
- * @see recorder_foreach_supported_audio_encoder()
+ * @pre legacy_recorder_foreach_supported_audio_encoder() will invoke this callback.
+ * @see legacy_recorder_foreach_supported_audio_encoder()
*/
typedef bool (*recorder_supported_audio_encoder_cb)(recorder_audio_codec_e codec, void *user_data);
* @param[in] codec The codec of video encoder
* @param[in] user_data The user data passed from the foreach function
* @return @c true to continue with the next iteration of the loop, \n otherwise @c false to break out of the loop
- * @pre recorder_foreach_supported_video_encoder() will invoke this callback.
- * @see recorder_foreach_supported_video_encoder()
+ * @pre legacy_recorder_foreach_supported_video_encoder() will invoke this callback.
+ * @see legacy_recorder_foreach_supported_video_encoder()
*/
typedef bool (*recorder_supported_video_encoder_cb)(recorder_video_codec_e codec, void *user_data);
* @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
+ * @remarks You must release @a recorder using legacy_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.
* @remarks The created recorder state will be different according to camera state : \n
* @retval #RECORDER_ERROR_INVALID_OPERATION Invalid operation
* @retval #RECORDER_ERROR_PERMISSION_DENIED The access to the resources can not be granted
* @retval #RECORDER_ERROR_NOT_SUPPORTED The feature is not supported
- * @see camera_create()
- * @see camera_stop_preview()
- * @see recorder_destroy()
+ * @see legacy_camera_create()
+ * @see legacy_camera_stop_preview()
+ * @see legacy_recorder_destroy()
*/
int legacy_recorder_create_videorecorder(camera_h camera, recorder_h *recorder);
* @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 You must release @a recorder using legacy_recorder_destroy().
* @param[out] recorder A handle to the recorder
* @return @c 0 on success, otherwise a negative error value
* @retval #RECORDER_ERROR_NONE Successful
* @retval #RECORDER_ERROR_PERMISSION_DENIED The access to the resources can not be granted
* @retval #RECORDER_ERROR_NOT_SUPPORTED The feature is not supported
* @post The recorder state will be #RECORDER_STATE_CREATED.
- * @see recorder_destroy()
+ * @see legacy_recorder_destroy()
*/
int legacy_recorder_create_audiorecorder(recorder_h *recorder);
* @pre The recorder state should be #RECORDER_STATE_CREATED.
* @post The recorder state will be #RECORDER_STATE_NONE.
* @see camera_destroy()
- * @see recorder_create_videorecorder()
- * @see recorder_create_audiorecorder()
+ * @see legacy_recorder_create_videorecorder()
+ * @see legacy_recorder_create_audiorecorder()
*/
int legacy_recorder_destroy(recorder_h recorder);
* @pre The recorder state should be #RECORDER_STATE_CREATED by legacy_recorder_create_videorecorder(), legacy_recorder_create_audiorecorder() or legacy_recorder_unprepare().
* @post The recorder state will be #RECORDER_STATE_READY.
* @post If recorder handle is created by legacy_recorder_create_videorecorder(), the camera state will be changed to #CAMERA_STATE_PREVIEW.
- * @see recorder_create_videorecorder()
- * @see recorder_create_audiorecorder()
- * @see recorder_unprepare()
- * @see recorder_set_audio_encoder()
- * @see recorder_set_video_encoder()
- * @see recorder_set_file_format()
+ * @see legacy_recorder_create_videorecorder()
+ * @see legacy_recorder_create_audiorecorder()
+ * @see legacy_recorder_unprepare()
+ * @see legacy_recorder_set_audio_encoder()
+ * @see legacy_recorder_set_video_encoder()
+ * @see legacy_recorder_set_file_format()
*/
int legacy_recorder_prepare(recorder_h recorder);
* @pre The recorder state should be #RECORDER_STATE_READY set by legacy_recorder_prepare(), legacy_recorder_cancel() or legacy_recorder_commit().
* @post The recorder state will be #RECORDER_STATE_CREATED.
* @post If the recorder handle is created by legacy_recorder_create_videorecorder(), camera state will be changed to #CAMERA_STATE_CREATED.
- * @see recorder_prepare()
- * @see recorder_cancel()
- * @see recorder_commit()
+ * @see legacy_recorder_prepare()
+ * @see legacy_recorder_cancel()
+ * @see legacy_recorder_commit()
*/
int legacy_recorder_unprepare(recorder_h recorder);
* @pre The recorder state must be #RECORDER_STATE_READY by legacy_recorder_prepare() or #RECORDER_STATE_PAUSED by legacy_recorder_pause(). \n
* The filename should be set by legacy_recorder_set_filename().
* @post The recorder state will be #RECORDER_STATE_RECORDING.
- * @see recorder_pause()
- * @see recorder_commit()
- * @see recorder_cancel()
- * @see recorder_set_audio_encoder()
- * @see recorder_set_filename()
- * @see recorder_set_file_format()
- * @see recorder_recording_status_cb()
- * @see recorder_set_filename()
+ * @see legacy_recorder_pause()
+ * @see legacy_recorder_commit()
+ * @see legacy_recorder_cancel()
+ * @see legacy_recorder_set_audio_encoder()
+ * @see legacy_recorder_set_filename()
+ * @see legacy_recorder_set_file_format()
+ * @see legacy_recorder_recording_status_cb()
+ * @see legacy_recorder_set_filename()
*/
int legacy_recorder_start(recorder_h recorder);
* @see legacy_recorder_pause()
* @see legacy_recorder_cancel()
* @see legacy_recorder_set_filename()
- * @see recorder_start()
+ * @see legacy_recorder_start()
*/
int legacy_recorder_commit(recorder_h recorder);
* @retval #RECORDER_ERROR_PERMISSION_DENIED The access to the resources can not be granted
* @retval #RECORDER_ERROR_NOT_SUPPORTED The feature is not supported
* @pre The recorder state must be #RECORDER_STATE_CREATED or #RECORDER_STATE_READY.
- * @see recorder_get_filename()
+ * @see legacy_recorder_get_filename()
*/
int legacy_recorder_set_filename(recorder_h recorder, const char *path);
* @retval #RECORDER_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #RECORDER_ERROR_PERMISSION_DENIED The access to the resources can not be granted
* @retval #RECORDER_ERROR_NOT_SUPPORTED The feature is not supported
- * @see recorder_set_filename()
+ * @see legacy_recorder_set_filename()
*/
int legacy_recorder_get_filename(recorder_h recorder, char **path);
/**
* @brief Sets the audio codec for encoding an audio stream.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
- * @remarks You can get available audio encoders by using recorder_foreach_supported_audio_encoder(). \n
+ * @remarks You can get available audio encoders by using legacy_recorder_foreach_supported_audio_encoder(). \n
* If set to #RECORDER_AUDIO_CODEC_DISABLE, the audio track is not created in recording files.\n
* Since 2.3.1, it could be returned #RECORDER_ERROR_INVALID_OPERATION \n
* when it's audio recorder and its state is #RECORDER_STATE_READY \n
* @retval #RECORDER_ERROR_NOT_SUPPORTED The feature is not supported
* @retval #RECORDER_ERROR_INVALID_OPERATION Invalid operation (Since 2.3.1)
* @pre The recorder state must be #RECORDER_STATE_CREATED or #RECORDER_STATE_READY.
- * @see recorder_get_audio_encoder()
+ * @see legacy_recorder_get_audio_encoder()
* @see legacy_recorder_foreach_supported_audio_encoder()
*/
int legacy_recorder_set_audio_encoder(recorder_h recorder, recorder_audio_codec_e codec);
* @retval #RECORDER_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #RECORDER_ERROR_PERMISSION_DENIED The access to the resources can not be granted
* @retval #RECORDER_ERROR_NOT_SUPPORTED The feature is not supported
- * @see recorder_set_audio_encoder()
+ * @see legacy_recorder_set_audio_encoder()
* @see legacy_recorder_foreach_supported_audio_encoder()
*/
int legacy_recorder_get_audio_encoder(recorder_h recorder, recorder_audio_codec_e *codec);
* @retval #RECORDER_ERROR_PERMISSION_DENIED The access to the resources can not be granted
* @retval #RECORDER_ERROR_NOT_SUPPORTED The feature is not supported
* @post legacy_recorder_supported_audio_encoder_cb() will be invoked.
- * @see recorder_set_audio_encoder()
- * @see recorder_get_audio_encoder()
- * @see recorder_supported_audio_encoder_cb()
+ * @see legacy_recorder_set_audio_encoder()
+ * @see legacy_recorder_get_audio_encoder()
+ * @see legacy_recorder_supported_audio_encoder_cb()
*/
int legacy_recorder_foreach_supported_audio_encoder(recorder_h recorder,
recorder_supported_audio_encoder_cb foreach_cb, const char* codec_type, int format, void *user_data);
* @retval #RECORDER_ERROR_PERMISSION_DENIED The access to the resources can not be granted
* @retval #RECORDER_ERROR_NOT_SUPPORTED The feature is not supported
* @pre The recorder state must be #RECORDER_STATE_CREATED or #RECORDER_STATE_READY.
- * @see recorder_start()
- * @see recorder_get_video_resolution()
- * @see recorder_foreach_supported_video_resolution()
+ * @see legacy_recorder_start()
+ * @see legacy_recorder_get_video_resolution()
+ * @see legacy_recorder_foreach_supported_video_resolution()
*/
int legacy_recorder_set_video_resolution(recorder_h recorder, int width, int height);
* @retval #RECORDER_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #RECORDER_ERROR_PERMISSION_DENIED The access to the resources can not be granted
* @retval #RECORDER_ERROR_NOT_SUPPORTED The feature is not supported
- * @see recorder_set_video_resolution()
- * @see recorder_foreach_supported_video_resolution()
+ * @see legacy_recorder_set_video_resolution()
+ * @see legacy_recorder_foreach_supported_video_resolution()
*/
int legacy_recorder_get_video_resolution(recorder_h recorder, int *width, int *height);
* @retval #RECORDER_ERROR_PERMISSION_DENIED The access to the resources can not be granted
* @retval #RECORDER_ERROR_NOT_SUPPORTED The feature is not supported
* @post This function invokes legacy_recorder_supported_video_resolution_cb() repeatedly to retrieve each supported video resolution.
- * @see recorder_set_video_resolution()
- * @see recorder_get_video_resolution()
- * @see recorder_supported_video_resolution_cb()
+ * @see legacy_recorder_set_video_resolution()
+ * @see legacy_recorder_get_video_resolution()
+ * @see legacy_recorder_supported_video_resolution_cb()
*/
int legacy_recorder_foreach_supported_video_resolution(recorder_h recorder,
recorder_supported_video_resolution_cb foreach_cb, void *user_data);
/**
* @brief Sets the video codec for encoding video stream.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
- * @remarks You can get available video encoders by using recorder_foreach_supported_video_encoder().
+ * @remarks You can get available video encoders by using legacy_recorder_foreach_supported_video_encoder().
* @param[in] recorder The handle to the media recorder
* @param[in] codec The video codec
* @return @c 0 on success, otherwise a negative error value
* @retval #RECORDER_ERROR_PERMISSION_DENIED The access to the resources can not be granted
* @retval #RECORDER_ERROR_NOT_SUPPORTED The feature is not supported
* @pre The recorder state must be #RECORDER_STATE_CREATED or #RECORDER_STATE_READY.
- * @see recorder_get_video_encoder()
+ * @see legacy_recorder_get_video_encoder()
* @see legacy_recorder_foreach_supported_video_encoder()
*/
int legacy_recorder_set_video_encoder(recorder_h recorder, recorder_video_codec_e codec);
* @post legacy_recorder_supported_video_encoder_cb() will be invoked.
* @see legacy_recorder_set_video_encoder()
* @see legacy_recorder_get_video_encoder()
- * @see recorder_supported_video_encoder_cb()
+ * @see legacy_recorder_supported_video_encoder_cb()
*/
int legacy_recorder_foreach_supported_video_encoder(recorder_h recorder,
recorder_supported_video_encoder_cb foreach_cb, const char* codec_type, int format, void *user_data);
* @retval #RECORDER_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #RECORDER_ERROR_PERMISSION_DENIED The access to the resources can not be granted
* @retval #RECORDER_ERROR_NOT_SUPPORTED The feature is not supported
- * @see recorder_unset_interrupted_cb()
- * @see recorder_interrupted_cb()
+ * @see legacy_recorder_unset_interrupted_cb()
+ * @see legacy_recorder_interrupted_cb()
*/
int legacy_recorder_set_interrupted_cb(recorder_h recorder, recorder_interrupted_cb callback, void *user_data);
* @retval #RECORDER_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #RECORDER_ERROR_PERMISSION_DENIED The access to the resources can not be granted
* @retval #RECORDER_ERROR_NOT_SUPPORTED The feature is not supported
- * @see recorder_set_interrupted_cb()
+ * @see legacy_recorder_set_interrupted_cb()
*/
int legacy_recorder_unset_interrupted_cb(recorder_h recorder);
* @retval #RECORDER_ERROR_PERMISSION_DENIED The access to the resources can not be granted
* @retval #RECORDER_ERROR_NOT_SUPPORTED The feature is not supported
* @pre The recorder state should be #RECORDER_STATE_READY or #RECORDER_STATE_CREATED.
- * @see recorder_unset_audio_stream_cb()
- * @see recorder_audio_stream_cb()
+ * @see legacy_recorder_unset_audio_stream_cb()
+ * @see legacy_recorder_audio_stream_cb()
*/
int legacy_recorder_set_audio_stream_cb(recorder_h recorder, recorder_audio_stream_cb callback, void* user_data);
int legacy_recorder_unset_audio_stream_cb(recorder_h recorder);
/**
+ * @brief Registers a callback function to be called when muxed stream data is being delivered.
+ * @since_tizen 4.0
+ * @remarks This callback function holds the same buffer that will be recorded, \n
+ * but, there is no effect on recorded file although an user changes the data in callback.
+ * @param[in] recorder The handle to the recorder
+ * @param[in] callback The callback function to register
+ * @param[in] user_data The user data to be passed to the callback function
+ * @return @c 0 on success, otherwise a negative error value
+ * @retval #RECORDER_ERROR_NONE Successful
+ * @retval #RECORDER_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #RECORDER_ERROR_INVALID_PARAMETER Invalid operation
+ * @retval #RECORDER_ERROR_INVALID_STATE Invalid state
+ * @pre The recorder state should be #RECORDER_STATE_READY or #RECORDER_STATE_CREATED.
+ * @see legacy_recorder_unset_muxed_stream_cb()
+ * @see legacy_recorder_muxed_stream_cb()
+ */
+int legacy_recorder_set_muxed_stream_cb(recorder_h recorder, recorder_muxed_stream_cb callback, void* user_data);
+
+/**
+ * @brief Unregisters the callback function.
+ * @since_tizen 4.0
+ * @param[in] recorder The handle to the media recorder
+ * @return @c 0 on success, otherwise a negative error value
+ * @retval #RECORDER_ERROR_NONE Successful
+ * @retval #RECORDER_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #RECORDER_ERROR_INVALID_PARAMETER Invalid operation
+ * @retval #RECORDER_ERROR_INVALID_STATE Invalid state
+ * @pre The recorder state should be #RECORDER_STATE_READY or #RECORDER_STATE_CREATED.
+ * @see legacy_recorder_set_muxed_stream_cb()
+ */
+int legacy_recorder_unset_muxed_stream_cb(recorder_h recorder);
+
+/**
* @brief Registers a callback function to be invoked when the recording information changes.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
* @param[in] recorder The handle to the media recorder
* @retval #RECORDER_ERROR_PERMISSION_DENIED The access to the resources can not be granted
* @retval #RECORDER_ERROR_NOT_SUPPORTED The feature is not supported
* @post legacy_recorder_recording_status_cb() will be invoked.
- * @see recorder_unset_recording_status_cb()
- * @see recorder_recording_status_cb()
+ * @see legacy_recorder_unset_recording_status_cb()
+ * @see legacy_recorder_recording_status_cb()
*/
int legacy_recorder_set_recording_status_cb(recorder_h recorder, recorder_recording_status_cb callback, void *user_data);
* @retval #RECORDER_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #RECORDER_ERROR_PERMISSION_DENIED The access to the resources can not be granted
* @retval #RECORDER_ERROR_NOT_SUPPORTED The feature is not supported
- * @see recorder_set_recording_status_cb()
+ * @see legacy_recorder_set_recording_status_cb()
*/
int legacy_recorder_unset_recording_status_cb(recorder_h recorder);
* @retval #RECORDER_ERROR_PERMISSION_DENIED The access to the resources can not be granted
* @retval #RECORDER_ERROR_NOT_SUPPORTED The feature is not supported
* @post legacy_recorder_recording_limit_reached_cb() will be invoked.
- * @see recorder_unset_recording_limit_reached_cb()
- * @see recorder_attr_set_size_limit()
- * @see recorder_attr_set_time_limit()
- * @see recorder_recording_limit_reached_cb()
+ * @see legacy_recorder_unset_recording_limit_reached_cb()
+ * @see legacy_recorder_attr_set_size_limit()
+ * @see legacy_recorder_attr_set_time_limit()
+ * @see legacy_recorder_recording_limit_reached_cb()
*/
int legacy_recorder_set_recording_limit_reached_cb(recorder_h recorder, recorder_recording_limit_reached_cb callback, void *user_data);
* @retval #RECORDER_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #RECORDER_ERROR_PERMISSION_DENIED The access to the resources can not be granted
* @retval #RECORDER_ERROR_NOT_SUPPORTED The feature is not supported
- * @see recorder_set_recording_limit_reached_cb()
+ * @see legacy_recorder_set_recording_limit_reached_cb()
*/
int legacy_recorder_unset_recording_limit_reached_cb(recorder_h recorder);
* @retval #RECORDER_ERROR_PERMISSION_DENIED The access to the resources can not be granted
* @retval #RECORDER_ERROR_NOT_SUPPORTED The feature is not supported
* @post This function will invoke legacy_recorder_error_cb() when an asynchronous operation error occur.
- * @see recorder_unset_error_cb()
- * @see recorder_error_cb()
+ * @see legacy_recorder_unset_error_cb()
+ * @see legacy_recorder_error_cb()
*/
int legacy_recorder_set_error_cb(recorder_h recorder, recorder_error_cb callback, void *user_data);
* @retval #RECORDER_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #RECORDER_ERROR_PERMISSION_DENIED The access to the resources can not be granted
* @retval #RECORDER_ERROR_NOT_SUPPORTED The feature is not supported
- * @see recorder_set_error_cb()
+ * @see legacy_recorder_set_error_cb()
*/
int legacy_recorder_unset_error_cb(recorder_h recorder);
* @retval #RECORDER_ERROR_PERMISSION_DENIED The access to the resources can not be granted
* @retval #RECORDER_ERROR_NOT_SUPPORTED The feature is not supported
* @pre The recorder state must be #RECORDER_STATE_CREATED or #RECORDER_STATE_READY.
- * @see recorder_attr_get_size_limit()
- * @see recorder_attr_set_time_limit()
+ * @see legacy_recorder_attr_get_size_limit()
+ * @see legacy_recorder_attr_set_time_limit()
*/
int legacy_recorder_attr_set_size_limit(recorder_h recorder, int kbyte);
* @retval #RECORDER_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #RECORDER_ERROR_PERMISSION_DENIED The access to the resources can not be granted
* @retval #RECORDER_ERROR_NOT_SUPPORTED The feature is not supported
- * @see recorder_attr_set_size_limit()
- * @see recorder_attr_get_time_limit()
+ * @see legacy_recorder_attr_set_size_limit()
+ * @see legacy_recorder_attr_get_time_limit()
*/
int legacy_recorder_attr_get_size_limit(recorder_h recorder, int *kbyte);
* @retval #RECORDER_ERROR_PERMISSION_DENIED The access to the resources can not be granted
* @retval #RECORDER_ERROR_NOT_SUPPORTED The feature is not supported
* @pre The recorder state must be #RECORDER_STATE_CREATED or #RECORDER_STATE_READY.
- * @see recorder_attr_get_time_limit()
- * @see recorder_attr_set_size_limit()
+ * @see legacy_recorder_attr_get_time_limit()
+ * @see legacy_recorder_attr_set_size_limit()
*/
int legacy_recorder_attr_set_time_limit(recorder_h recorder, int second);
* @retval #RECORDER_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #RECORDER_ERROR_PERMISSION_DENIED The access to the resources can not be granted
* @retval #RECORDER_ERROR_NOT_SUPPORTED The feature is not supported
- * @see recorder_attr_set_time_limit()
- * @see recorder_attr_get_size_limit()
+ * @see legacy_recorder_attr_set_time_limit()
+ * @see legacy_recorder_attr_get_size_limit()
*/
int legacy_recorder_attr_get_time_limit(recorder_h recorder, int *second);
* @retval #RECORDER_ERROR_NOT_SUPPORTED The feature is not supported
* @pre The recorder state must be #RECORDER_STATE_CREATED or #RECORDER_STATE_READY (for video recorder only).\n
* Since 2.3.1, this API also works for audio recorder when its state is #RECORDER_STATE_READY.
- * @see recorder_attr_get_audio_device()
+ * @see legacy_recorder_attr_get_audio_device()
*/
int legacy_recorder_attr_set_audio_device(recorder_h recorder, recorder_audio_device_e device);
* @retval #RECORDER_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #RECORDER_ERROR_PERMISSION_DENIED The access to the resources can not be granted
* @retval #RECORDER_ERROR_NOT_SUPPORTED The feature is not supported
- * @see recorder_attr_set_audio_device()
+ * @see legacy_recorder_attr_set_audio_device()
*/
int legacy_recorder_attr_get_audio_device(recorder_h recorder, recorder_audio_device_e *device);
* @retval #RECORDER_ERROR_NOT_SUPPORTED The feature is not supported
* @pre The recorder state must be #RECORDER_STATE_CREATED or #RECORDER_STATE_READY (for video recorder only).\n
* Since 2.3.1, this API also works for audio recorder when its state is #RECORDER_STATE_READY.
- * @see recorder_attr_get_audio_samplerate()
+ * @see legacy_recorder_attr_get_audio_samplerate()
*/
int legacy_recorder_attr_set_audio_samplerate(recorder_h recorder, int samplerate);
* @retval #RECORDER_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #RECORDER_ERROR_PERMISSION_DENIED The access to the resources can not be granted
* @retval #RECORDER_ERROR_NOT_SUPPORTED The feature is not supported
- * @see recorder_attr_set_audio_samplerate()
+ * @see legacy_recorder_attr_set_audio_samplerate()
*/
int legacy_recorder_attr_get_audio_samplerate(recorder_h recorder, int *samplerate);
* @retval #RECORDER_ERROR_PERMISSION_DENIED The access to the resources can not be granted
* @retval #RECORDER_ERROR_NOT_SUPPORTED The feature is not supported
* @pre The recorder state must be #RECORDER_STATE_CREATED or #RECORDER_STATE_READY.
- * @see recorder_attr_get_audio_encoder_bitrate()
+ * @see legacy_recorder_attr_get_audio_encoder_bitrate()
*/
int legacy_recorder_attr_set_audio_encoder_bitrate(recorder_h recorder, int bitrate);
* @retval #RECORDER_ERROR_PERMISSION_DENIED The access to the resources can not be granted
* @retval #RECORDER_ERROR_NOT_SUPPORTED The feature is not supported
* @pre The recorder state must be #RECORDER_STATE_CREATED or #RECORDER_STATE_READY.
- * @see recorder_attr_get_video_encoder_bitrate()
+ * @see legacy_recorder_attr_get_video_encoder_bitrate()
*/
int legacy_recorder_attr_set_video_encoder_bitrate(recorder_h recorder, int bitrate);
* @retval #RECORDER_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #RECORDER_ERROR_PERMISSION_DENIED The access to the resources can not be granted
* @retval #RECORDER_ERROR_NOT_SUPPORTED The feature is not supported
- * @see recorder_attr_set_audio_encoder_bitrate()
+ * @see legacy_recorder_attr_set_audio_encoder_bitrate()
*/
int legacy_recorder_attr_get_audio_encoder_bitrate(recorder_h recorder, int *bitrate);
* @retval #RECORDER_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #RECORDER_ERROR_PERMISSION_DENIED The access to the resources can not be granted
* @retval #RECORDER_ERROR_NOT_SUPPORTED The feature is not supported
- * @see recorder_attr_set_audio_encoder_bitrate()
+ * @see legacy_recorder_attr_set_audio_encoder_bitrate()
*/
int legacy_recorder_attr_get_video_encoder_bitrate(recorder_h recorder, int *bitrate);
* @retval #RECORDER_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #RECORDER_ERROR_PERMISSION_DENIED The access to the resources can not be granted
* @retval #RECORDER_ERROR_NOT_SUPPORTED The feature is not supported
- * @see recorder_attr_is_muted()
+ * @see legacy_recorder_attr_is_muted()
*/
int legacy_recorder_attr_set_mute(recorder_h recorder, bool enable);
* @exception #RECORDER_ERROR_INVALID_PARAMETER Invalid parameter
* @exception #RECORDER_ERROR_PERMISSION_DENIED The access to the resources can not be granted
* @exception #RECORDER_ERROR_NOT_SUPPORTED The feature is not supported
- * @see recorder_attr_set_mute()
+ * @see legacy_recorder_attr_set_mute()
*/
bool legacy_recorder_attr_is_muted(recorder_h recorder);
* @retval #RECORDER_ERROR_PERMISSION_DENIED The access to the resources can not be granted
* @retval #RECORDER_ERROR_NOT_SUPPORTED The feature is not supported
* @pre The recorder state must be #RECORDER_STATE_CREATED or #RECORDER_STATE_READY.
- * @see recorder_attr_get_recording_motion_rate()
+ * @see legacy_recorder_attr_get_recording_motion_rate()
*/
int legacy_recorder_attr_set_recording_motion_rate(recorder_h recorder, double rate);
* @retval #RECORDER_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #RECORDER_ERROR_PERMISSION_DENIED The access to the resources can not be granted
* @retval #RECORDER_ERROR_NOT_SUPPORTED The feature is not supported
- * @see recorder_attr_set_recording_motion_rate()
+ * @see legacy_recorder_attr_set_recording_motion_rate()
*/
int legacy_recorder_attr_get_recording_motion_rate(recorder_h recorder, double *rate);
* @retval #RECORDER_ERROR_NOT_SUPPORTED The feature is not supported
* @pre The recorder state must be #RECORDER_STATE_CREATED or #RECORDER_STATE_READY (for video recorder only).\n
* Since 2.3.1, this API also works for audio recorder when its state is #RECORDER_STATE_READY.
- * @see recorder_attr_get_audio_channel()
+ * @see legacy_recorder_attr_get_audio_channel()
*/
int legacy_recorder_attr_set_audio_channel(recorder_h recorder, int channel_count);
* @retval #RECORDER_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #RECORDER_ERROR_PERMISSION_DENIED The access to the resources can not be granted
* @retval #RECORDER_ERROR_NOT_SUPPORTED The feature is not supported
- * @see recorder_attr_set_audio_channel()
+ * @see legacy_recorder_attr_set_audio_channel()
*/
int legacy_recorder_attr_get_audio_channel(recorder_h recorder, int *channel_count);
* @retval #RECORDER_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #RECORDER_ERROR_PERMISSION_DENIED The access to the resources can not be granted
* @retval #RECORDER_ERROR_NOT_SUPPORTED The feature is not supported
- * @see recorder_attr_get_orientation_tag()
+ * @see legacy_recorder_attr_get_orientation_tag()
*/
-int legacy_recorder_attr_set_orientation_tag(recorder_h recorder, recorder_rotation_e orientation);
+int legacy_recorder_attr_set_orientation_tag(recorder_h recorder, recorder_rotation_e orientation);
/**
* @brief Gets the video orientation in a video metadata tag.
* @retval #RECORDER_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #RECORDER_ERROR_PERMISSION_DENIED The access to the resources can not be granted
* @retval #RECORDER_ERROR_NOT_SUPPORTED The feature is not supported
- * @see recorder_attr_set_orientation_tag()
+ * @see legacy_recorder_attr_set_orientation_tag()
*/
int legacy_recorder_attr_get_orientation_tag(recorder_h recorder, recorder_rotation_e *orientation);