Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(81)

Unified Diff: webrtc/ortc/rtptransportcontrolleradapter.cc

Issue 2981513002: Wire up RTP keep-alive in ortc api. (Closed)
Patch Set: wip Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/ortc/rtptransportcontrolleradapter.cc
diff --git a/webrtc/ortc/rtptransportcontrolleradapter.cc b/webrtc/ortc/rtptransportcontrolleradapter.cc
index 5e0b62112357ba849fec33d5e3428e1e5c235932..ed4521499cc50e26f025b7ba715670b5c83a8fb2 100644
--- a/webrtc/ortc/rtptransportcontrolleradapter.cc
+++ b/webrtc/ortc/rtptransportcontrolleradapter.cc
@@ -252,6 +252,15 @@ RTCError RtpTransportControllerAdapter::SetRtcpParameters(
"Failed to apply new RTCP parameters.");
}
+RTCError RtpTransportControllerAdapter::SetRtpTransportParameters(
+ const RtpTransportParameters& parameters) {
+ if (!call_->SetRtpKeepAliveConfig(parameters.keepalive)) {
+ LOG_AND_RETURN_ERROR(RTCErrorType::INTERNAL_ERROR,
+ "Failed to apply new RTP transport parameters.");
+ }
+ return RTCError::OK();
+}
+
RTCError RtpTransportControllerAdapter::ValidateAndApplyAudioSenderParameters(
const RtpParameters& parameters,
uint32_t* primary_ssrc) {

Powered by Google App Engine
This is Rietveld 408576698