{
int ret = 0;
- ret = webrtc_set_bundle_policy(g_ad.conns[index].webrtc, policy);
+ 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);
RET_IF(ret != WEBRTC_ERROR_NONE, "ret[0x%x]", ret);
- g_print("webrtc_set_bundle_policy() success\n");
+ g_print("%s success\n", policy == 2 ? "webrtc_set_bundle_policy_max_compat()" : "webrtc_set_bundle_policy()");
}
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)\n");
+ g_print("*** input bundle policy.(0:none, 1:max-bundle, *2:max-compat (internal API))\n");
break;
case CURRENT_STATUS_SET_ICE_TRANSPORT_POLICY:
g_print("*** input ICE transport policy.(0:all, 1:relay)\n");