* @brief Retrieves all the statistics properties.
* @since_tizen 7.0
* @remarks The registered callback will be invoked in an internal thread of the webrtc.
+ * This function can be called in the state of #WEBRTC_STATE_NEGOTIATING. (Since 9.0)
* @param[in] webrtc WebRTC handle
* @param[in] type_mask The mask values of #webrtc_stats_type_e combined with bitwise 'or'
* @param[in] callback Callback function pointer
* @retval #WEBRTC_ERROR_NONE Successful
* @retval #WEBRTC_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #WEBRTC_ERROR_INVALID_STATE Invalid state
- * @pre @a webrtc state must be set to #WEBRTC_STATE_PLAYING.
+ * @pre @a webrtc state must be set to #WEBRTC_STATE_NEGOTIATING or #WEBRTC_STATE_PLAYING.
* @post webrtc_stats_cb() will be invoked.
* @par Example
* @code
locker = g_mutex_locker_new(&_webrtc->mutex);
- RET_VAL_IF(_webrtc->state != WEBRTC_STATE_PLAYING, WEBRTC_ERROR_INVALID_STATE, "the state should be PLAYING");
+ RET_VAL_IF(_webrtc->state == WEBRTC_STATE_IDLE, WEBRTC_ERROR_INVALID_STATE, "the state should not be IDLE");
if (type_mask == WEBRTC_STATS_TYPE_ALL) {
/* exported all types */