It has been moved from internal API.
: webrtc_set_bundle_policy_max_compat() has been removed
from internal header.
[Version] 1.1.21
[Issue Type] API
Change-Id: I0ffbf07a0ac62c20ab39cf1e493ae03b45d97250
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
typedef enum {
WEBRTC_BUNDLE_POLICY_NONE, /**< None */
WEBRTC_BUNDLE_POLICY_MAX_BUNDLE, /**< Max-bundle */
+ WEBRTC_BUNDLE_POLICY_MAX_COMPAT, /**< Max-compat (Since 9.0) */
} webrtc_bundle_policy_e;
/**
*/
#define WEBRTC_SNAPSHOT_OPTION_NONE -1
-/**
- * @internal
- * @brief Definition for WebRTC bundle policy - 'max-compat'.
- * @since_tizen 7.0
- * @remarks It corresponds with the RTCBundlePolicy enum described in https://www.w3.org/TR/webrtc/#rtcbundlepolicy-enum.
- */
-#define WEBRTC_BUNDLE_POLICY_MAX_COMPAT 2
-
/**
* @internal
* @brief Enumeration for WebRTC signaling message type.
*/
int webrtc_get_rtp_packet_drop_probability(webrtc_h webrtc, bool sender, float *probability);
-/**
- * @brief Sets the 'max-compat' bundle policy.
- * @since_tizen 7.0
- * @param[in] webrtc WebRTC handle
- * @return @c 0 on success,
- * otherwise a negative error value
- * @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_IDLE.
- */
-int webrtc_set_bundle_policy_max_compat(webrtc_h webrtc);
-
/**
* @internal
* @brief Starts the WebRTC synchronously.
Name: capi-media-webrtc
Summary: A WebRTC library in Tizen Native API
-Version: 1.1.20
+Version: 1.1.21
Release: 0
Group: Multimedia/API
License: Apache-2.0
webrtc_s *_webrtc = (webrtc_s *)webrtc;
RET_VAL_IF(_webrtc == NULL, WEBRTC_ERROR_INVALID_PARAMETER, "webrtc is NULL");
- RET_VAL_IF(policy > WEBRTC_BUNDLE_POLICY_MAX_BUNDLE, WEBRTC_ERROR_INVALID_PARAMETER, "invalid policy(%d)", policy);
+ RET_VAL_IF(policy > WEBRTC_BUNDLE_POLICY_MAX_COMPAT, WEBRTC_ERROR_INVALID_PARAMETER, "invalid policy(%d)", policy);
locker = g_mutex_locker_new(&_webrtc->mutex);
return _get_packet_drop_probability(webrtc, sender, probability);
}
-int webrtc_set_bundle_policy_max_compat(webrtc_h webrtc)
-{
- g_autoptr(GMutexLocker) locker = NULL;
- webrtc_s *_webrtc = (webrtc_s *)webrtc;
-
- RET_VAL_IF(_webrtc->state != WEBRTC_STATE_IDLE, WEBRTC_ERROR_INVALID_STATE, "the state should be IDLE");
-
- /* Until it is released to public header, use the gst value directly. */
- g_object_set(G_OBJECT(_webrtc->gst.webrtcbin), "bundle-policy", GST_WEBRTC_BUNDLE_POLICY_MAX_COMPAT, NULL);
-
- LOG_INFO("webrtc[%p] policy[%s]", webrtc, "MAX-COMPAT");
-
- return WEBRTC_ERROR_NONE;
-}
-
int webrtc_start_sync(webrtc_h webrtc)
{
int ret = WEBRTC_ERROR_NONE;
static void _webrtc_set_bundle_policy(int index, int policy)
{
- int ret = 0;
-
- if (policy == 2) /* use internal API */
- ret = webrtc_set_bundle_policy_max_compat(g_ad.conns[index].webrtc);
- else
- ret = webrtc_set_bundle_policy(g_ad.conns[index].webrtc, policy);
+ int ret = webrtc_set_bundle_policy(g_ad.conns[index].webrtc, policy);
RET_IF(ret != WEBRTC_ERROR_NONE, "ret[0x%x]", ret);
- g_print("%s success\n", policy == 2 ? "webrtc_set_bundle_policy_max_compat()" : "webrtc_set_bundle_policy()");
+ g_print("webrtc_set_bundle_policy() success\n");
}
static void _webrtc_get_bundle_policy(int index)
g_print("*** input TURN server address.\n");
break;
case CURRENT_STATUS_SET_BUNDLE_POLICY:
- g_print("*** input bundle policy.(0:none, 1:max-bundle, *2:max-compat (internal API))\n");
+ g_print("*** input bundle policy.(0:none, 1:max-bundle, 2:max-compat\n");
break;
case CURRENT_STATUS_SET_ICE_TRANSPORT_POLICY:
g_print("*** input ICE transport policy.(0:all, 1:relay)\n");