* @since_tizen 6.5
*/
typedef enum {
- WEBRTC_MEDIA_SOURCE_TYPE_CAMERA,
- WEBRTC_MEDIA_SOURCE_TYPE_MIC,
- WEBRTC_MEDIA_SOURCE_TYPE_AUDIOTEST,
- WEBRTC_MEDIA_SOURCE_TYPE_VIDEOTEST
+ WEBRTC_MEDIA_SOURCE_TYPE_CAMERA, /**< Camera preview */
+ WEBRTC_MEDIA_SOURCE_TYPE_MIC, /**< Audio from microphone */
+ WEBRTC_MEDIA_SOURCE_TYPE_AUDIOTEST, /**< Audio test */
+ WEBRTC_MEDIA_SOURCE_TYPE_VIDEOTEST, /**< Video test */
} webrtc_media_source_type_e;
/**
* @brief Called when an error occurs.
+ * @details The following error codes can be received:\n
+ * #WEBRTC_ERROR_INVALID_OPERATION\n
+ * #WEBRTC_ERROR_STREAM_FAILED\n
+ * #WEBRTC_ERROR_RESOURCE_FAILED\n
* @since_tizen 6.5
* @remarks The @a webrtc is the same object for which the callback was set.\nThe @a webrtc should not be released.
- * @param [in] webrtc WebRTC handle
- * @param [in] error The error code
- * @param [in] state The current state of the WebRTC handle
- * @param [in] user_data The user data passed from the callback registration function
+ * @param[in] webrtc WebRTC handle
+ * @param[in] error The error code
+ * @param[in] state The current state of the WebRTC handle
+ * @param[in] user_data The user data passed from the callback registration function
* @see webrtc_set_error_cb()
* @see webrtc_unset_error_cb()
*/
* @brief Called when the WebRTC state is changed.
* @since_tizen 6.5
* @remarks The @a webrtc is the same object for which the callback was set.\nThe @a webrtc should not be released.
- * @param [in] webrtc WebRTC handle
- * @param [in] previous The previous state of the WebRTC handle
- * @param [in] current The current state of the WebRTC handle
- * @param [in] user_data The user data passed from the callback registration function
+ * @param[in] webrtc WebRTC handle
+ * @param[in] previous The previous state of the WebRTC handle
+ * @param[in] current The current state of the WebRTC handle
+ * @param[in] user_data The user data passed from the callback registration function
* @see webrtc_set_state_changed_cb()
* @see webrtc_unset_state_changed_cb()
*/
* @brief Called when the WebRTC needs session negotiation.
* @since_tizen 6.5
* @remarks The @a webrtc is the same object for which the callback was set.\nThe @a webrtc should not be released.
- * @param [in] webrtc WebRTC handle
- * @param [in] user_data The user data passed from the callback registration function
+ * @param[in] webrtc WebRTC handle
+ * @param[in] user_data The user data passed from the callback registration function
* @see webrtc_set_negotiation_needed_cb()
* @see webrtc_unset_negotiation_needed_cb()
*/
* @brief Called when the WebRTC needs to send the ICE candidate message to the remote peer through the signaling channel.
* @since_tizen 6.5
* @remarks The @a webrtc is the same object for which the callback was set.\nThe @a webrtc should not be released.
- * @param [in] webrtc WebRTC handle
- * @param [in] candidate The ICE candidate message
- * @param [in] user_data The user data passed from the callback registration function
+ * @param[in] webrtc WebRTC handle
+ * @param[in] candidate The ICE candidate message
+ * @param[in] user_data The user data passed from the callback registration function
* @see webrtc_set_ice_candidate_cb()
* @see webrtc_unset_ice_candidate_cb()
*/
/**
* @brief Sets a callback function to be invoked when an asynchronous operation error occurs.
* @since_tizen 6.5
- * @param [in] webrtc WebRTC handle
- * @param [in] callback Callback function pointer
- * @param [in] user_data The user data to be passed to the callback function
+ * @param[in] webrtc WebRTC handle
+ * @param[in] callback Callback function pointer
+ * @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 #WEBRTC_ERROR_NONE Successful
/**
* @brief Unsets the error callback function.
* @since_tizen 6.5
- * @param [in] webrtc WebRTC handle
+ * @param[in] webrtc WebRTC handle
* @return @c 0 on success,
* otherwise a negative error value
* @retval #WEBRTC_ERROR_NONE Successful
/**
* @brief Sets a callback function to be invoked when the WebRTC state is changed.
* @since_tizen 6.5
- * @param [in] webrtc WebRTC handle
- * @param [in] callback Callback function pointer
- * @param [in] user_data The user data to be passed to the callback function
+ * @param[in] webrtc WebRTC handle
+ * @param[in] callback Callback function pointer
+ * @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 #WEBRTC_ERROR_NONE Successful
/**
* @brief Unsets the state changed callback function.
* @since_tizen 6.5
- * @param [in] webrtc WebRTC handle
+ * @param[in] webrtc WebRTC handle
* @return @c 0 on success,
* otherwise a negative error value
* @retval #WEBRTC_ERROR_NONE Successful
* @brief Creates an instance of WebRTC.
* @since_tizen 6.5
* @remarks You must release @a webrtc using webrtc_destroy().
- * @param [out] webrtc WebRTC handle
+ * @param[out] webrtc WebRTC handle
* @return @c 0 on success,
* otherwise a negative error value
* @retval #WEBRTC_ERROR_NONE Successful
/**
* @brief Starts the WebRTC.
* @since_tizen 6.5
- * @param [in] webrtc WebRTC handle
+ * @param[in] webrtc WebRTC handle
* @return @c 0 on success,
* otherwise a negative error value
* @retval #WEBRTC_ERROR_NONE Successful
/**
* @brief Stops the WebRTC.
* @since_tizen 6.5
- * @param [in] webrtc WebRTC handle
+ * @param[in] webrtc WebRTC handle
* @return @c 0 on success,
* otherwise a negative error value
* @retval #WEBRTC_ERROR_NONE Successful
/**
* @brief Destroys the WebRTC.
* @since_tizen 6.5
- * @param [in] webrtc WebRTC handle
+ * @param[in] webrtc WebRTC handle
* @return @c 0 on success,
* otherwise a negative error value
* @retval #WEBRTC_ERROR_NONE Successful
/**
* @brief Gets the WebRTC state.
* @since_tizen 6.5
- * @param [in] webrtc WebRTC handle
- * @param [out] state WebRTC state
+ * @param[in] webrtc WebRTC handle
+ * @param[out] state WebRTC state
* @return @c 0 on success,
* otherwise a negative error value
* @retval #WEBRTC_ERROR_NONE Successful
/**
* @brief Adds a media source.
* @since_tizen 6.5
- * @param [in] webrtc WebRTC handle
- * @param [in] type The media source type to be added
- * @param [out] source_id The media source id
+ * @param[in] webrtc WebRTC handle
+ * @param[in] type The media source type to be added
+ * @param[out] source_id The media source id
* @return @c 0 on success,
* otherwise a negative error value
* @retval #WEBRTC_ERROR_NONE Successful
/**
* @brief Removes the media source.
* @since_tizen 6.5
- * @param [in] webrtc WebRTC handle
- * @param [in] source_id The media source id to be removed
+ * @param[in] webrtc WebRTC handle
+ * @param[in] source_id The media source id to be removed
* @return @c 0 on success,
* otherwise a negative error value
* @retval #WEBRTC_ERROR_NONE Successful
/**
* @brief Sets a STUN server URL.
* @since_tizen 6.5
- * @param [in] webrtc WebRTC handle
- * @param [in] stun_server The STUN server URL
+ * @param[in] webrtc WebRTC handle
+ * @param[in] stun_server The STUN server URL
* @return @c 0 on success,
* otherwise a negative error value
* @retval #WEBRTC_ERROR_NONE Successful
/**
* @brief Sets a negotiation needed callback function to be invoked when a change has occurred which requires session negotiation.
* @since_tizen 6.5
- * @param [in] webrtc WebRTC handle
- * @param [in] callback Callback function pointer
- * @param [in] user_data The user data to be passed to the callback function
+ * @param[in] webrtc WebRTC handle
+ * @param[in] callback Callback function pointer
+ * @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 #WEBRTC_ERROR_NONE Successful
/**
* @brief Unsets the negotiation needed callback function.
* @since_tizen 6.5
- * @param [in] webrtc WebRTC handle
+ * @param[in] webrtc WebRTC handle
* @return @c 0 on success,
* otherwise a negative error value
* @retval #WEBRTC_ERROR_NONE Successful
/**
* @brief Sets an ICE candidate callback function to be invoked when the WebRTC needs to send the ICE candidate message to the remote peer.
* @since_tizen 6.5
- * @param [in] webrtc WebRTC handle
- * @param [in] callback Callback function pointer
- * @param [in] user_data The user data to be passed to the callback function
+ * @param[in] webrtc WebRTC handle
+ * @param[in] callback Callback function pointer
+ * @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 #WEBRTC_ERROR_NONE Successful
/**
* @brief Unsets the ice candidate callback function.
* @since_tizen 6.5
- * @param [in] webrtc WebRTC handle
+ * @param[in] webrtc WebRTC handle
* @return @c 0 on success,
* otherwise a negative error value
* @retval #WEBRTC_ERROR_NONE Successful
* @brief Creates SDP offer to start a new WebRTC connection to a remote peer.
* @since_tizen 6.5
* @remarks The @a offer should be released using free().
- * @param [in] webrtc WebRTC handle
- * @param [out] offer SDP offer
+ * @param[in] webrtc WebRTC handle
+ * @param[out] offer SDP offer
* @return @c 0 on success,
* otherwise a negative error value
* @retval #WEBRTC_ERROR_NONE Successful
* @brief Creates SDP answer to an offer received from a remote peer during the negotiation of a WebRTC connection.
* @since_tizen 6.5
* @remarks The @a answer should be released using free().
- * @param [in] webrtc WebRTC handle
- * @param [out] answer SDP answer
+ * @param[in] webrtc WebRTC handle
+ * @param[out] answer SDP answer
* @return @c 0 on success,
* otherwise a negative error value
* @retval #WEBRTC_ERROR_NONE Successful
* @since_tizen 6.5
* @remarks @a description is a JSON string.\n
* It will be {"sdp":{"type":"offer or answer","sdp":"..."}}.
- * @param [in] webrtc WebRTC handle
- * @param [in] description The local session description
+ * @param[in] webrtc WebRTC handle
+ * @param[in] description The local session description
* @return @c 0 on success,
* otherwise a negative error value
* @retval #WEBRTC_ERROR_NONE Successful
* @since_tizen 6.5
* @remarks @a description is a JSON string.\n
* It will be {"sdp":{"type":"offer or answer","sdp":"..."}}.
- * @param [in] webrtc WebRTC handle
- * @param [in] description The remote session description
+ * @param[in] webrtc WebRTC handle
+ * @param[in] description The remote session description
* @return @c 0 on success,
* otherwise a negative error value
* @retval #WEBRTC_ERROR_NONE Successful
* @since_tizen 6.5
* @remarks @a candidate is a JSON string.\n
* It will be {"ice":{"candidate":"..."}}.
- * @param [in] webrtc WebRTC handle
- * @param [in] candidate The ICE candidate
+ * @param[in] webrtc WebRTC handle
+ * @param[in] candidate The ICE candidate
* @return @c 0 on success,
* otherwise a negative error value
* @retval #WEBRTC_ERROR_NONE Successful