RET_VAL_IF(_webrtc->state != WEBRTC_STATE_NEGOTIATING, WEBRTC_ERROR_INVALID_STATE, "the state should be NEGOTIATING");
+ LOG_INFO("webrtc[%p] options[%p] callback[%p] user_data[%p]", webrtc, options, callback, user_data);
+
+ _update_transceivers_fec(webrtc, true);
+ _update_transceivers_for_offer(webrtc);
+
return _webrtcbin_create_session_description_async(webrtc, true, callback, user_data);
}
RET_VAL_IF(_webrtc->state != WEBRTC_STATE_NEGOTIATING, WEBRTC_ERROR_INVALID_STATE, "the state should be NEGOTIATING");
RET_VAL_IF(!_webrtcbin_have_remote_offer(_webrtc), WEBRTC_ERROR_INVALID_STATE, "remote offer should be set");
+ LOG_INFO("webrtc[%p] options[%p] callback[%p] user_data[%p]", webrtc, options, callback, user_data);
+
+ _update_transceivers_fec(webrtc, false);
+
return _webrtcbin_create_session_description_async(webrtc, false, callback, user_data);
}