/**
* @brief WebRTC handle type.
- * @since_tizen 6.0
+ * @since_tizen 6.5
*/
typedef void *webrtc_h;
/**
* @brief Enumeration for WebRTC error.
- * @since_tizen 6.0
+ * @since_tizen 6.5
*/
typedef enum
{
/**
* @brief Enumeration for WebRTC state.
- * @since_tizen 6.0
+ * @since_tizen 6.5
*/
typedef enum
{
/**
* @brief Enumeration for WebRTC media source type.
- * @since_tizen 6.0
+ * @since_tizen 6.5
*/
typedef enum {
WEBRTC_MEDIA_SOURCE_TYPE_CAMERA,
/**
* @brief Called when an error occurs.
- * @since_tizen 6.0
+ * @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
/**
* @brief Called when the WebRTC state is changed.
- * @since_tizen 6.0
+ * @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
/**
* @brief Called when the WebRTC needs session negotiation.
- * @since_tizen 6.0
+ * @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
/**
* @brief Called when the WebRTC needs to send the ICE candidate message to the remote peer through the signaling channel.
- * @since_tizen 6.0
+ * @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
/**
* @brief Sets a callback function to be invoked when an asynchronous operation error occurs.
- * @since_tizen 6.0
+ * @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
/**
* @brief Unsets the error callback function.
- * @since_tizen 6.0
+ * @since_tizen 6.5
* @param [in] webrtc WebRTC handle
* @return @c 0 on success,
* otherwise a negative error value
/**
* @brief Sets a callback function to be invoked when the WebRTC state is changed.
- * @since_tizen 6.0
+ * @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
/**
* @brief Unsets the state changed callback function.
- * @since_tizen 6.0
+ * @since_tizen 6.5
* @param [in] webrtc WebRTC handle
* @return @c 0 on success,
* otherwise a negative error value
/**
* @brief Creates an instance of WebRTC.
- * @since_tizen 6.0
+ * @since_tizen 6.5
* @remarks You must release @a webrtc using webrtc_destroy().
* @param [out] webrtc WebRTC handle
* @return @c 0 on success,
/**
* @brief Starts the WebRTC.
- * @since_tizen 6.0
+ * @since_tizen 6.5
* @param [in] webrtc WebRTC handle
* @return @c 0 on success,
* otherwise a negative error value
/**
* @brief Stops the WebRTC.
- * @since_tizen 6.0
+ * @since_tizen 6.5
* @param [in] webrtc WebRTC handle
* @return @c 0 on success,
* otherwise a negative error value
/**
* @brief Destroys the WebRTC.
- * @since_tizen 6.0
+ * @since_tizen 6.5
* @param [in] webrtc WebRTC handle
* @return @c 0 on success,
* otherwise a negative error value
/**
* @brief Gets the WebRTC state.
- * @since_tizen 6.0
+ * @since_tizen 6.5
* @param [in] webrtc WebRTC handle
* @param [out] state WebRTC state
* @return @c 0 on success,
/**
* @brief Adds a media source.
- * @since_tizen 6.0
+ * @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
/**
* @brief Removes the media source.
- * @since_tizen 6.0
+ * @since_tizen 6.5
* @param [in] webrtc WebRTC handle
* @param [in] source_id The media source id to be removed
* @return @c 0 on success,
/**
* @brief Sets a STUN server URL.
- * @since_tizen 6.0
+ * @since_tizen 6.5
* @param [in] webrtc WebRTC handle
* @param [in] stun_server The STUN server URL
* @return @c 0 on success,
/**
* @brief Sets a negotiation needed callback function to be invoked when a change has occurred which requires session negotiation.
- * @since_tizen 6.0
+ * @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
/**
* @brief Unsets the negotiation needed callback function.
- * @since_tizen 6.0
+ * @since_tizen 6.5
* @param [in] webrtc WebRTC handle
* @return @c 0 on success,
* otherwise a negative error value
/**
* @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.0
+ * @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
/**
* @brief Unsets the ice candidate callback function.
- * @since_tizen 6.0
+ * @since_tizen 6.5
* @param [in] webrtc WebRTC handle
* @return @c 0 on success,
* otherwise a negative error value
/**
* @brief Creates SDP offer to start a new WebRTC connection to a remote peer.
- * @since_tizen 6.0
+ * @since_tizen 6.5
* @remarks The @a offer should be released using free().
* @param [in] webrtc WebRTC handle
* @param [out] offer SDP offer
/**
* @brief Creates SDP answer to an offer received from a remote peer during the negotiation of a WebRTC connection.
- * @since_tizen 6.0
+ * @since_tizen 6.5
* @remarks The @a answer should be released using free().
* @param [in] webrtc WebRTC handle
* @param [out] answer SDP answer
/**
* @brief Sets the session description for a local peer associated with a WebRTC connection.
- * @since_tizen 6.0
+ * @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
/**
* @brief Sets the session description of the remote peer's current offer or answer.
- * @since_tizen 6.0
+ * @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
/**
* @brief Adds a new ICE candidate from the remote peer over its signaling channel.
- * @since_tizen 6.0
+ * @since_tizen 6.5
* @remarks @a candidate is a JSON string.\n
* It will be {"ice":{"candidate":"..."}}.
* @param [in] webrtc WebRTC handle