* @param[out] recorder A handle to the streamrecorder
* @return @c 0 on success, otherwise a negative error value
* @retval #STREAMRECORDER_ERROR_NONE Successful
+ * @retval #STREAMRECORDER_ERROR_NOT_SUPPORTED Not supported
* @retval #STREAMRECORDER_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #STREAMRECORDER_ERROR_OUT_OF_MEMORY Out of memory
* @retval #STREAMRECORDER_ERROR_INVALID_OPERATION Invalid operation
* @param[in] recorder The handle to the streamrecorder
* @return @c 0 on success, otherwise a negative error value
* @retval #STREAMRECORDER_ERROR_NONE Successful
+ * @retval #STREAMRECORDER_ERROR_NOT_SUPPORTED Not supported
* @retval #STREAMRECORDER_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #STREAMRECORDER_ERROR_INVALID_OPERATION Invalid operation
* @retval #STREAMRECORDER_ERROR_INVALID_STATE Invalid state
+ * @pre Create a stream recorder handle by calling streamrecorder_create().
* @pre The recorder state should be #STREAMRECORDER_STATE_CREATED.
* @post The recorder state will be #STREAMRECORDER_STATE_NONE.
+ * @see streamrecorder_create()
*/
int streamrecorder_destroy(streamrecorder_h recorder);
* @param[in] recorder The handle to the streamrecorder
* @return @c 0 on success, otherwise a negative error value
* @retval #STREAMRECORDER_ERROR_NONE Successful
+ * @retval #STREAMRECORDER_ERROR_NOT_SUPPORTED Not supported
* @retval #STREAMRECORDER_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #STREAMRECORDER_ERROR_INVALID_OPERATION Invalid operation
* @retval #STREAMRECORDER_ERROR_INVALID_STATE Invalid state
+ * @pre Create a stream recorder handle by calling streamrecorder_create().
* @pre The recorder state should be #STREAMRECORDER_STATE_CREATED. \n
* The streamrecorder_enable_source_buffer() should be invoked before this function.
* @post The streamrecorder state will be #STREAMRECORDER_STATE_PREPARED
+ * @see streamrecorder_create()
* @see streamrecorder_unprepare()
* @see streamrecorder_set_audio_encoder()
* @see streamrecorder_set_video_encoder()
* @param[in] recorder The handle to the streamrecorder
* @return @c 0 on success, otherwise a negative error value
* @retval #STREAMRECORDER_ERROR_NONE Successful
+ * @retval #STREAMRECORDER_ERROR_NOT_SUPPORTED Not supported
* @retval #STREAMRECORDER_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #STREAMRECORDER_ERROR_INVALID_OPERATION Invalid operation
* @retval #STREAMRECORDER_ERROR_INVALID_STATE Invalid state
+ * @pre Create a stream recorder handle by calling streamrecorder_create().
* @pre The streamrecorder state should be #STREAMRECORDER_STATE_PREPARED set by streamrecorder_prepare(), streamrecorder_cancel() or streamrecorder_commit().
* @post The streamrecorder state will be #STREAMRECORDER_STATE_CREATED.
+ * @see streamrecorder_create()
* @see streamrecorder_prepare()
* @see streamrecorder_cancel()
* @see streamrecorder_commit()
* @param[in] recorder The handle to the streamrecorder
* @return @c 0 on success, otherwise a negative error value
* @retval #STREAMRECORDER_ERROR_NONE Successful
+ * @retval #STREAMRECORDER_ERROR_NOT_SUPPORTED Not supported
* @retval #STREAMRECORDER_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #STREAMRECORDER_ERROR_INVALID_OPERATION Invalid operation
* @retval #STREAMRECORDER_ERROR_INVALID_STATE Invalid state
* @retval #STREAMRECORDER_ERROR_PERMISSION_DENIED The access to the resources can not be granted
+ * @pre Create a stream recorder handle by calling streamrecorder_create().
* @pre The streamrecorder state must be #STREAMRECORDER_STATE_PREPARED by streamrecorder_prepare() or #STREAMRECORDER_STATE_PAUSED by streamrecorder_pause(). \n
* The filename should be set by streamrecorder_set_filename().
* @post The recorder state will be #STREAMRECORDER_STATE_RECORDING.
+ * @see streamrecorder_create()
* @see streamrecorder_pause()
* @see streamrecorder_commit()
* @see streamrecorder_cancel()
* @param[in] recorder The handle to the streamrecorder
* @return @c 0 on success, otherwise a negative error value
* @retval #STREAMRECORDER_ERROR_NONE Successful
+ * @retval #STREAMRECORDER_ERROR_NOT_SUPPORTED Not supported
* @retval #STREAMRECORDER_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #STREAMRECORDER_ERROR_INVALID_OPERATION Invalid operation
* @retval #STREAMRECORDER_ERROR_INVALID_STATE Invalid state
+ * @pre Create a stream recorder handle by calling streamrecorder_create().
* @pre The streamrecorder state must be #STREAMRECORDER_STATE_RECORDING.
* @post The streamrecorder state will be #STREAMRECORDER_STATE_PAUSED.
+ * @see streamrecorder_create()
* @see streamrecorder_commit()
* @see streamrecorder_cancel()
*/
* @param[in] recorder The handle to the streamrecorder
* @return @c 0 on success, otherwise a negative error value
* @retval #STREAMRECORDER_ERROR_NONE Successful
+ * @retval #STREAMRECORDER_ERROR_NOT_SUPPORTED Not supported
* @retval #STREAMRECORDER_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #STREAMRECORDER_ERROR_INVALID_OPERATION Invalid operation
* @retval #STREAMRECORDER_ERROR_INVALID_STATE Invalid state
* @retval #STREAMRECORDER_ERROR_PERMISSION_DENIED The access to the resources can not be granted
+ * @pre Create a stream recorder handle by calling streamrecorder_create().
* @pre The streamrecorder state must be #STREAMRECORDER_STATE_RECORDING set by streamrecorder_start() or #STREAMRECORDER_STATE_PAUSED by streamrecorder_pause().
* @post The streamrecorder state will be #STREAMRECORDER_STATE_PREPARED.
+ * @see streamrecorder_create()
* @see streamrecorder_pause()
* @see streamrecorder_cancel()
* @see streamrecorder_set_filename()
* @param[in] recorder The handle to the streamrecorder
* @return @c 0 on success, otherwise a negative error value
* @retval #STREAMRECORDER_ERROR_NONE Successful
+ * @retval #STREAMRECORDER_ERROR_NOT_SUPPORTED Not supported
* @retval #STREAMRECORDER_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #STREAMRECORDER_ERROR_INVALID_OPERATION Invalid operation
* @retval #STREAMRECORDER_ERROR_INVALID_STATE Invalid state
* @retval #STREAMRECORDER_ERROR_PERMISSION_DENIED The access to the resources can not be granted
+ * @pre Create a stream recorder handle by calling streamrecorder_create().
* @pre The streamrecorder state must be #STREAMRECORDER_STATE_RECORDING set by streamrecorder_start() or #STREAMRECORDER_STATE_PAUSED by streamrecorder_pause().
* @post The streamrecorder state will be #STREAMRECORDER_STATE_PREPARED.
+ * @see streamrecorder_create()
* @see streamrecorder_pause()
* @see streamrecorder_commit()
* @see streamrecorder_start()
* @param[in] inbuf The media packet containing buffer and other associated values
* @return @c 0 on success, otherwise a negative error value
* @retval #STREAMRECORDER_ERROR_NONE Successful
+ * @retval #STREAMRECORDER_ERROR_NOT_SUPPORTED Not supported
* @retval #STREAMRECORDER_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #STREAMRECORDER_ERROR_PERMISSION_DENIED The access to the resources can not be granted
+ * @pre Create a stream recorder handle by calling streamrecorder_create().
+ * @see streamrecorder_create()
*/
int streamrecorder_push_stream_buffer(streamrecorder_h recorder, media_packet_h inbuf);
/**
- * @brief Sets the video source as live buffer to be used for recording
+ * @brief Sets the video source as live buffer to be used for recording.
* @since_tizen 3.0
* @remarks if you want to enable video or audio or both recording, call before streamrecorder_prepare()
* @param[in] recorder A handle to the streamrecorder
* @param[in] type The type of source input
* @return @c 0 on success, otherwise a negative error value
* @retval #STREAMRECORDER_ERROR_NONE Successful
+ * @retval #STREAMRECORDER_ERROR_NOT_SUPPORTED Not supported
* @retval #STREAMRECORDER_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #STREAMRECORDER_ERROR_INVALID_STATE Invalid state
+ * @pre Create a stream recorder handle by calling streamrecorder_create().
* @pre The streamrecorder state must be only #STREAMRECORDER_STATE_CREATED
+ * @see streamrecorder_create()
*/
int streamrecorder_enable_source_buffer(streamrecorder_h recorder, streamrecorder_source_e type);
* @param[out] state The current state of the streamrecorder
* @return @c 0 on success, otherwise a negative error value
* @retval #STREAMRECORDER_ERROR_NONE Successful
+ * @retval #STREAMRECORDER_ERROR_NOT_SUPPORTED Not supported
* @retval #STREAMRECORDER_ERROR_INVALID_PARAMETER Invalid parameter
+ * @pre Create a stream recorder handle by calling streamrecorder_create().
+ * @see streamrecorder_create()
*/
int streamrecorder_get_state(streamrecorder_h recorder, streamrecorder_state_e *state);
* @param[in] path The recording file path
* @return @c 0 on success, otherwise a negative error value
* @retval #STREAMRECORDER_ERROR_NONE Successful
+ * @retval #STREAMRECORDER_ERROR_NOT_SUPPORTED Not supported
* @retval #STREAMRECORDER_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #STREAMRECORDER_ERROR_INVALID_STATE Invalid state
+ * @pre Create a stream recorder handle by calling streamrecorder_create().
* @pre The streamrecorder state must be #STREAMRECORDER_STATE_CREATED. \n
* streamrecorder_enable_source_buffer() should be invoked before this function.
+ * @see streamrecorder_create()
* @see streamrecorder_get_filename()
*/
int streamrecorder_set_filename(streamrecorder_h recorder, const char *path);
* @param[out] path The recording file path
* @return @c 0 on success, otherwise a negative error value
* @retval #STREAMRECORDER_ERROR_NONE Successful
+ * @retval #STREAMRECORDER_ERROR_NOT_SUPPORTED Not supported
* @retval #STREAMRECORDER_ERROR_INVALID_PARAMETER Invalid parameter
* streamrecorder_enable_source_buffer() should be invoked before this function.
+ * @pre Create a stream recorder handle by calling streamrecorder_create().
+ * @see streamrecorder_create()
* @see streamrecorder_set_filename()
*/
int streamrecorder_get_filename(streamrecorder_h recorder, char **path);
* @param[in] format The media file format
* @return @c 0 on success, otherwise a negative error value
* @retval #STREAMRECORDER_ERROR_NONE Successful
+ * @retval #STREAMRECORDER_ERROR_NOT_SUPPORTED Not supported
* @retval #STREAMRECORDER_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #STREAMRECORDER_ERROR_INVALID_STATE Invalid state
* @retval #STREAMRECORDER_ERROR_INVALID_OPERATION Invalid operation
+ * @pre Create a stream recorder handle by calling streamrecorder_create().
* @pre The streamrecorder state must be #STREAMRECORDER_STATE_CREATED. \n
* streamrecorder_enable_source_buffer() should be invoked before this function.
+ * @see streamrecorder_create()
* @see streamrecorder_get_file_format()
* @see streamrecorder_foreach_supported_file_format()
*/
* @param[out] format The media file format
* @return @c 0 on success, otherwise a negative error value
* @retval #STREAMRECORDER_ERROR_NONE Successful
+ * @retval #STREAMRECORDER_ERROR_NOT_SUPPORTED Not supported
* @retval #STREAMRECORDER_ERROR_INVALID_PARAMETER Invalid parameter
+ * @pre Create a stream recorder handle by calling streamrecorder_create().
* @pre The streamrecorder_enable_source_buffer() should be invoked before this function.
+ * @see streamrecorder_create()
* @see streamrecorder_set_file_format()
* @see streamrecorder_foreach_supported_file_format()
*/
int streamrecorder_get_file_format(streamrecorder_h recorder, streamrecorder_file_format_e *format);
-
/**
* @brief Sets the audio codec for encoding an audio stream.
* @since_tizen 3.0
* @param[in] codec The audio codec
* @return @c 0 on success, otherwise a negative error value
* @retval #STREAMRECORDER_ERROR_NONE Successful
+ * @retval #STREAMRECORDER_ERROR_NOT_SUPPORTED Not supported
* @retval #STREAMRECORDER_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #STREAMRECORDER_ERROR_INVALID_STATE Invalid state
- * @retval #STREAMRECORDER_ERROR_NOT_SUPPORTED The feature is not supported
* @retval #STREAMRECORDER_ERROR_INVALID_OPERATION Invalid operation
+ * @pre Create a stream recorder handle by calling streamrecorder_create().
* @pre The streamrecorder state must be #STREAMRECORDER_STATE_CREATED. \n
* streamrecorder_enable_source_buffer() should be invoked before this function.
+ * @see streamrecorder_create()
* @see streamrecorder_get_audio_encoder()
* @see streamrecorder_foreach_supported_audio_encoder()
*/
* @param[out] codec The audio codec
* @return @c 0 on success, otherwise a negative error value
* @retval #STREAMRECORDER_ERROR_NONE Successful
+ * @retval #STREAMRECORDER_ERROR_NOT_SUPPORTED Not supported
* @retval #STREAMRECORDER_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #STREAMRECORDER_ERROR_NOT_SUPPORTED The feature is not supported
+ * @pre Create a stream recorder handle by calling streamrecorder_create().
* @pre The streamrecorder_enable_source_buffer() should be invoked before this function.
+ * @see streamrecorder_create()
* @see streamrecorder_set_audio_encoder()
* @see streamrecorder_foreach_supported_audio_encoder()
*/
* @param[in] height The input height
* @return @c 0 on success, otherwise a negative error value
* @retval #STREAMRECORDER_ERROR_NONE Successful
+ * @retval #STREAMRECORDER_ERROR_NOT_SUPPORTED Not supported
* @retval #STREAMRECORDER_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #STREAMRECORDER_ERROR_INVALID_STATE Invalid state
- * @retval #STREAMRECORDER_ERROR_NOT_SUPPORTED The feature is not supported
+ * @pre Create a stream recorder handle by calling streamrecorder_create().
* @pre The streamrecorder state must be #STREAMRECORDER_STATE_CREATED. \n
* streamrecorder_enable_source_buffer() should be invoked before this function.
+ * @see streamrecorder_create()
* @see streamrecorder_start()
* @see streamrecorder_get_video_resolution()
* @see streamrecorder_foreach_supported_video_resolution()
* @param[out] height The video height
* @return @c 0 on success, otherwise a negative error value
* @retval #STREAMRECORDER_ERROR_NONE Successful
+ * @retval #STREAMRECORDER_ERROR_NOT_SUPPORTED Not supported
* @retval #STREAMRECORDER_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #STREAMRECORDER_ERROR_NOT_SUPPORTED The feature is not supported
+ * @pre Create a stream recorder handle by calling streamrecorder_create().
* @pre The streamrecorder_enable_source_buffer() should be invoked before this function.
+ * @see streamrecorder_create()
* @see streamrecorder_set_video_resolution()
* @see streamrecorder_foreach_supported_video_resolution()
*/
* @param[in] codec The video codec
* @return @c 0 on success, otherwise a negative error value
* @retval #STREAMRECORDER_ERROR_NONE Successful
+ * @retval #STREAMRECORDER_ERROR_NOT_SUPPORTED Not supported
* @retval #STREAMRECORDER_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #STREAMRECORDER_ERROR_INVALID_STATE Invalid state
- * @retval #STREAMRECORDER_ERROR_NOT_SUPPORTED The feature is not supported
+ * @pre Create a stream recorder handle by calling streamrecorder_create().
* @pre The streamrecorder state must be #STREAMRECORDER_STATE_CREATED. \n
* streamrecorder_enable_source_buffer() should be invoked before this function.
+ * @see streamrecorder_create()
* @see streamrecorder_get_video_encoder()
* @see streamrecorder_foreach_supported_video_encoder()
*/
* @param[out] codec The video codec
* @return @c 0 on success, otherwise a negative error value
* @retval #STREAMRECORDER_ERROR_NONE Successful
+ * @retval #STREAMRECORDER_ERROR_NOT_SUPPORTED Not supported
* @retval #STREAMRECORDER_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #STREAMRECORDER_ERROR_NOT_SUPPORTED The feature is not supported
+ * @pre Create a stream recorder handle by calling streamrecorder_create().
* @pre The streamrecorder_enable_source_buffer() should be invoked before this function.
+ * @see streamrecorder_create()
* @see streamrecorder_set_video_encoder()
* @see streamrecorder_foreach_supported_video_encoder()
*/
* @param[in] framerate The frame rate for recording
* @return @c 0 on success, otherwise a negative error value
* @retval #STREAMRECORDER_ERROR_NONE Successful
+ * @retval #STREAMRECORDER_ERROR_NOT_SUPPORTED Not supported
* @retval #STREAMRECORDER_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #STREAMRECORDER_ERROR_INVALID_STATE Invalid state
+ * @pre Create a stream recorder handle by calling streamrecorder_create().
+ * @see streamrecorder_create()
* @see streamrecorder_get_video_framerate()
*/
int streamrecorder_set_video_framerate(streamrecorder_h recorder, int framerate);
* @param[out] framerate The frame rate for recording that already is set
* @return @c 0 on success, otherwise a negative error value
* @retval #STREAMRECORDER_ERROR_NONE Successful
+ * @retval #STREAMRECORDER_ERROR_NOT_SUPPORTED Not supported
* @retval #STREAMRECORDER_ERROR_INVALID_PARAMETER Invalid parameter
+ * @pre Create a stream recorder handle by calling streamrecorder_create().
+ * @see streamrecorder_create()
* @see streamrecorder_set_video_framerate()
*/
int streamrecorder_get_video_framerate(streamrecorder_h recorder, int *framerate);
* @param[in] format The color type of video source
* @return @c 0 on success, otherwise a negative error value
* @retval #STREAMRECORDER_ERROR_NONE Successful
+ * @retval #STREAMRECORDER_ERROR_NOT_SUPPORTED Not supported
* @retval #STREAMRECORDER_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #STREAMRECORDER_ERROR_INVALID_STATE Invalid state
+ * @pre Create a stream recorder handle by calling streamrecorder_create().
+ * @see streamrecorder_create()
* @see streamrecorder_get_video_source_format()
*/
int streamrecorder_set_video_source_format(streamrecorder_h recorder, streamrecorder_video_source_format_e format);
* @param[out] format The color type of video source that already is set
* @return @c 0 on success, otherwise a negative error value
* @retval #STREAMRECORDER_ERROR_NONE Successful
+ * @retval #STREAMRECORDER_ERROR_NOT_SUPPORTED Not supported
* @retval #STREAMRECORDER_ERROR_INVALID_PARAMETER Invalid parameter
+ * @pre Create a stream recorder handle by calling streamrecorder_create().
+ * @see streamrecorder_create()
* @see streamrecorder_set_video_source_format()
*/
int streamrecorder_get_video_source_format(streamrecorder_h recorder, streamrecorder_video_source_format_e *format);
* @c 0 means unlimited recording size or time.
* @return @c 0 on success, otherwise a negative error value
* @retval #STREAMRECORDER_ERROR_NONE Successful
+ * @retval #STREAMRECORDER_ERROR_NOT_SUPPORTED Not supported
* @retval #STREAMRECORDER_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #STREAMRECORDER_ERROR_INVALID_STATE Invalid state
+ * @pre Create a stream recorder handle by calling streamrecorder_create().
* @pre The streamrecorder state must be #STREAMRECORDER_STATE_CREATED. \n
* streamrecorder_enable_source_buffer() should be invoked before this function.
+ * @see streamrecorder_create()
* @see streamrecorder_get_recording_limit()
*/
int streamrecorder_set_recording_limit(streamrecorder_h recorder, streamrecorder_recording_limit_type_e type, int limit);
* @c 0 means unlimited recording size or time.
* @return @c 0 on success, otherwise a negative error value
* @retval #STREAMRECORDER_ERROR_NONE Successful
+ * @retval #STREAMRECORDER_ERROR_NOT_SUPPORTED Not supported
* @retval #STREAMRECORDER_ERROR_INVALID_PARAMETER Invalid parameter
+ * @pre Create a stream recorder handle by calling streamrecorder_create().
* @pre The streamrecorder_enable_source_buffer() should be invoked before this function.
+ * @see streamrecorder_create()
* @see streamrecorder_set_recording_limit()
*/
int streamrecorder_get_recording_limit(streamrecorder_h recorder, streamrecorder_recording_limit_type_e type, int *limit);
* @param[in] samplerate The sample rate in Hertz
* @return @c 0 on success, otherwise a negative error value
* @retval #STREAMRECORDER_ERROR_NONE Successful
+ * @retval #STREAMRECORDER_ERROR_NOT_SUPPORTED Not supported
* @retval #STREAMRECORDER_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #STREAMRECORDER_ERROR_INVALID_STATE Invalid state
+ * @pre Create a stream recorder handle by calling streamrecorder_create().
* @pre The streamrecorder state must be #STREAMRECORDER_STATE_CREATED. \n
* streamrecorder_enable_source_buffer() should be invoked before this function.
+ * @see streamrecorder_create()
* @see streamrecorder_get_audio_samplerate()
*/
int streamrecorder_set_audio_samplerate(streamrecorder_h recorder, int samplerate);
* @param[out] samplerate The sample rate in Hertz
* @return @c 0 on success, otherwise a negative error value
* @retval #STREAMRECORDER_ERROR_NONE Successful
+ * @retval #STREAMRECORDER_ERROR_NOT_SUPPORTED Not supported
* @retval #STREAMRECORDER_ERROR_INVALID_PARAMETER Invalid parameter
+ * @pre Create a stream recorder handle by calling streamrecorder_create().
* @pre The streamrecorder_enable_source_buffer() should be invoked before this function.
+ * @see streamrecorder_create()
* @see streamrecorder_set_audio_samplerate()
*/
int streamrecorder_get_audio_samplerate(streamrecorder_h recorder, int *samplerate);
* @param[in] bitrate The bitrate (for mms : 12200[bps], normal : 288000[bps])
* @return @c 0 on success, otherwise a negative error value
* @retval #STREAMRECORDER_ERROR_NONE Successful
+ * @retval #STREAMRECORDER_ERROR_NOT_SUPPORTED Not supported
* @retval #STREAMRECORDER_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #STREAMRECORDER_ERROR_INVALID_STATE Invalid state
+ * @pre Create a stream recorder handle by calling streamrecorder_create().
* @pre The streamrecorder state must be #STREAMRECORDER_STATE_CREATED. \n
* streamrecorder_enable_source_buffer() should be invoked before this function.
+ * @see streamrecorder_create()
* @see streamrecorder_get_audio_encoder_bitrate()
*/
int streamrecorder_set_audio_encoder_bitrate(streamrecorder_h recorder, int bitrate);
* @param[in] bitrate The bitrate in bits per second
* @return @c 0 on success, otherwise a negative error value
* @retval #STREAMRECORDER_ERROR_NONE Successful
+ * @retval #STREAMRECORDER_ERROR_NOT_SUPPORTED Not supported
* @retval #STREAMRECORDER_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #STREAMRECORDER_ERROR_INVALID_STATE Invalid state
+ * @pre Create a stream recorder handle by calling streamrecorder_create().
* @pre The streamrecorder state must be #STREAMRECORDER_STATE_CREATED. \n
* streamrecorder_enable_source_buffer() should be invoked before this function.
+ * @see streamrecorder_create()
* @see streamrecorder_get_video_encoder_bitrate()
*/
int streamrecorder_set_video_encoder_bitrate(streamrecorder_h recorder, int bitrate);
* @param[out] bitrate The bitrate in bits per second
* @return @c 0 on success, otherwise a negative error value
* @retval #STREAMRECORDER_ERROR_NONE Successful
+ * @retval #STREAMRECORDER_ERROR_NOT_SUPPORTED Not supported
* @retval #STREAMRECORDER_ERROR_INVALID_PARAMETER Invalid parameter
+ * @pre Create a stream recorder handle by calling streamrecorder_create().
* @pre The streamrecorder_enable_source_buffer() should be invoked before this function.
+ * @see streamrecorder_create()
* @see streamrecorder_set_audio_encoder_bitrate()
*/
int streamrecorder_get_audio_encoder_bitrate(streamrecorder_h recorder, int *bitrate);
* @param[out] bitrate The bitrate in bits per second
* @return @c 0 on success, otherwise a negative error value
* @retval #STREAMRECORDER_ERROR_NONE Successful
+ * @retval #STREAMRECORDER_ERROR_NOT_SUPPORTED Not supported
* @retval #STREAMRECORDER_ERROR_INVALID_PARAMETER Invalid parameter
+ * @pre Create a stream recorder handle by calling streamrecorder_create().
* @pre The streamrecorder_enable_source_buffer() should be invoked before this function.
+ * @see streamrecorder_create()
* @see streamrecorder_set_audio_encoder_bitrate()
*/
int streamrecorder_get_video_encoder_bitrate(streamrecorder_h recorder, int *bitrate);
* @param[in] channel_count The number of the audio channel
* @return @c 0 on success, otherwise a negative error value
* @retval #STREAMRECORDER_ERROR_NONE Successful
+ * @retval #STREAMRECORDER_ERROR_NOT_SUPPORTED Not supported
* @retval #STREAMRECORDER_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #STREAMRECORDER_ERROR_INVALID_STATE Invalid state
+ * @pre Create a stream recorder handle by calling streamrecorder_create().
* @pre The streamrecorder state must be #STREAMRECORDER_STATE_CREATED.\n
* streamrecorder_enable_source_buffer() should be invoked before this function.
+ * @see streamrecorder_create()
* @see streamrecorder_get_audio_channel()
*/
int streamrecorder_set_audio_channel(streamrecorder_h recorder, int channel_count);
* @param[out] channel_count The number of the audio channel
* @return @c 0 on success, otherwise a negative error value
* @retval #STREAMRECORDER_ERROR_NONE Successful
+ * @retval #STREAMRECORDER_ERROR_NOT_SUPPORTED Not supported
* @retval #STREAMRECORDER_ERROR_INVALID_PARAMETER Invalid parameter
+ * @pre Create a stream recorder handle by calling streamrecorder_create().
* @pre The streamrecorder_enable_source_buffer() should be invoked before this function.
+ * @see streamrecorder_create()
* @see streamrecorder_set_audio_channel()
*/
int streamrecorder_get_audio_channel(streamrecorder_h recorder, int *channel_count);
* @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 #STREAMRECORDER_ERROR_NONE Successful
+ * @retval #STREAMRECORDER_ERROR_NOT_SUPPORTED Not supported
* @retval #STREAMRECORDER_ERROR_INVALID_PARAMETER Invalid parameter
+ * @pre Create a stream recorder handle by calling streamrecorder_create().
* @post streamrecorder_supported_file_format_cb() will be invoked.
+ * @see streamrecorder_create()
* @see streamrecorder_get_file_format()
* @see streamrecorder_set_file_format()
* @see streamrecorder_supported_file_format_cb()
* @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 #STREAMRECORDER_ERROR_NONE Successful
+ * @retval #STREAMRECORDER_ERROR_NOT_SUPPORTED Not supported
* @retval #STREAMRECORDER_ERROR_INVALID_PARAMETER Invalid parameter
+ * @pre Create a stream recorder handle by calling streamrecorder_create().
* @post streamrecorder_supported_audio_encoder_cb() will be invoked.
+ * @see streamrecorder_create()
* @see streamrecorder_set_audio_encoder()
* @see streamrecorder_get_audio_encoder()
* @see streamrecorder_supported_audio_encoder_cb()
* @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 #STREAMRECORDER_ERROR_NONE Successful
+ * @retval #STREAMRECORDER_ERROR_NOT_SUPPORTED Not supported
* @retval #STREAMRECORDER_ERROR_INVALID_PARAMETER Invalid parameter
+ * @pre Create a stream recorder handle by calling streamrecorder_create().
* @post streamrecorder_supported_video_encoder_cb() will be invoked.
+ * @see streamrecorder_create()
* @see streamrecorder_set_video_encoder()
* @see streamrecorder_get_video_encoder()
* @see streamrecorder_supported_video_encoder_cb()
* @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 #STREAMRECORDER_ERROR_NONE Successful
+ * @retval #STREAMRECORDER_ERROR_NOT_SUPPORTED Not supported
* @retval #STREAMRECORDER_ERROR_INVALID_PARAMETER Invalid parameter
+ * @pre Create a stream recorder handle by calling streamrecorder_create().
* @post This function invokes streamrecorder_supported_video_resolution_cb() repeatedly to retrieve each supported video resolution.
+ * @see streamrecorder_create()
* @see streamrecorder_set_video_resolution()
* @see streamrecorder_get_video_resolution()
* @see streamrecorder_supported_video_resolution_cb()
* @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 #STREAMRECORDER_ERROR_NONE Successful
+ * @retval #STREAMRECORDER_ERROR_NOT_SUPPORTED Not supported
* @retval #STREAMRECORDER_ERROR_INVALID_PARAMETER Invalid parameter
+ * @pre Create a stream recorder handle by calling streamrecorder_create().
* @post streamrecorder_notify_cb() will be invoked.
+ * @see streamrecorder_create()
* @see streamrecorder_unset_notify_cb()
* @see streamrecorder_notify_cb()
*/
* @param[in] recorder The handle to the streamrecorder
* @return @c 0 on success, otherwise a negative error value
* @retval #STREAMRECORDER_ERROR_NONE Successful
+ * @retval #STREAMRECORDER_ERROR_NOT_SUPPORTED Not supported
* @retval #STREAMRECORDER_ERROR_INVALID_PARAMETER Invalid parameter
+ * @pre Create a stream recorder handle by calling streamrecorder_create().
+ * @see streamrecorder_create()
* @see streamrecorder_set_notify_cb()
*/
int streamrecorder_unset_notify_cb(streamrecorder_h recorder);
* @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 #STREAMRECORDER_ERROR_NONE Successful
+ * @retval #STREAMRECORDER_ERROR_NOT_SUPPORTED Not supported
* @retval #STREAMRECORDER_ERROR_INVALID_PARAMETER Invalid parameter
+ * @pre Create a stream recorder handle by calling streamrecorder_create().
* @post streamrecorder_recording_status_cb() will be invoked.
+ * @see streamrecorder_create()
* @see streamrecorder_unset_recording_status_cb()
* @see streamrecorder_recording_status_cb()
*/
* @param[in] recorder The handle to the streamrecorder
* @return @c 0 on success, otherwise a negative error value
* @retval #STREAMRECORDER_ERROR_NONE Successful
+ * @retval #STREAMRECORDER_ERROR_NOT_SUPPORTED Not supported
* @retval #STREAMRECORDER_ERROR_INVALID_PARAMETER Invalid parameter
+ * @pre Create a stream recorder handle by calling streamrecorder_create().
* @see streamrecorder_set_recording_status_cb()
*/
int streamrecorder_unset_recording_status_cb(streamrecorder_h recorder);
* @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 #STREAMRECORDER_ERROR_NONE Successful
+ * @retval #STREAMRECORDER_ERROR_NOT_SUPPORTED Not supported
* @retval #STREAMRECORDER_ERROR_INVALID_PARAMETER Invalid parameter
+ * @pre Create a stream recorder handle by calling streamrecorder_create().
* @post streamrecorder_recording_limit_reached_cb() will be invoked.
+ * @see streamrecorder_create()
* @see streamrecorder_unset_recording_limit_reached_cb()
* @see streamrecorder_set_time_limit()
* @see streamrecorder_recording_limit_reached_cb()
* @param[in] recorder The handle to the streamrecorder
* @return @c 0 on success, otherwise a negative error value
* @retval #STREAMRECORDER_ERROR_NONE Successful
+ * @retval #STREAMRECORDER_ERROR_NOT_SUPPORTED Not supported
* @retval #STREAMRECORDER_ERROR_INVALID_PARAMETER Invalid parameter
+ * @pre Create a stream recorder handle by calling streamrecorder_create().
+ * @see streamrecorder_create()
* @see streamrecorder_set_recording_limit_reached_cb()
*/
int streamrecorder_unset_recording_limit_reached_cb(streamrecorder_h recorder);
* @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 #STREAMRECORDER_ERROR_NONE Successful
+ * @retval #STREAMRECORDER_ERROR_NOT_SUPPORTED Not supported
* @retval #STREAMRECORDER_ERROR_INVALID_PARAMETER Invalid parameter
+ * @pre Create a stream recorder handle by calling streamrecorder_create().
* @post This function will invoke streamrecorder_error_cb() when an asynchronous operation error occur.
+ * @see streamrecorder_create()
* @see streamrecorder_unset_error_cb()
* @see streamrecorder_error_cb()
*/
* @param[in] recorder The handle to the streamrecorder
* @return @c on success, otherwise a negative error value
* @retval #STREAMRECORDER_ERROR_NONE Successful
+ * @retval #STREAMRECORDER_ERROR_NOT_SUPPORTED Not supported
* @retval #STREAMRECORDER_ERROR_INVALID_PARAMETER Invalid parameter
+ * @pre Create a stream recorder handle by calling streamrecorder_create().
+ * @see streamrecorder_create()
* @see streamrecorder_set_error_cb()
*/
int streamrecorder_unset_error_cb(streamrecorder_h recorder);
* @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 #STREAMRECORDER_ERROR_NONE Successful
+ * @retval #STREAMRECORDER_ERROR_NOT_SUPPORTED Not supported
* @retval #STREAMRECORDER_ERROR_INVALID_PARAMETER Invalid parameter
+ * @pre Create a stream recorder handle by calling streamrecorder_create().
+ * @see streamrecorder_create()
* @see streamrecorder_unset_buffer_consume_completed_cb()
* @see streamrecorder_push_stream_buffer()
*/
* @param[in] recorder The handle to the streamrecorder
* @return @c on success, otherwise a negative error value
* @retval #STREAMRECORDER_ERROR_NONE Successful
+ * @retval #STREAMRECORDER_ERROR_NOT_SUPPORTED Not supported
* @retval #STREAMRECORDER_ERROR_INVALID_PARAMETER Invalid parameter
+ * @pre Create a stream recorder handle by calling streamrecorder_create().
+ * @see streamrecorder_create()
* @see streamrecorder_set_buffer_consume_completed_cb()
*/
int streamrecorder_unset_buffer_consume_completed_cb(streamrecorder_h recorder);