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

Unified Diff: webrtc/ortc/rtptransportadapter.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/rtptransportadapter.cc
diff --git a/webrtc/ortc/rtptransportadapter.cc b/webrtc/ortc/rtptransportadapter.cc
index 1154ff629b87367fadefdbe2fe527322d2465a95..62a89a8af40cc871630c977b74a90055d3760ae3 100644
--- a/webrtc/ortc/rtptransportadapter.cc
+++ b/webrtc/ortc/rtptransportadapter.cc
@@ -26,6 +26,10 @@ PROXY_CONSTMETHOD0(PacketTransportInterface*, GetRtpPacketTransport)
PROXY_CONSTMETHOD0(PacketTransportInterface*, GetRtcpPacketTransport)
PROXY_METHOD1(RTCError, SetRtcpParameters, const RtcpParameters&)
PROXY_CONSTMETHOD0(RtcpParameters, GetRtcpParameters)
+PROXY_METHOD1(RTCError,
+ SetRtpTransportParameters,
+ const RtpTransportParameters&)
+PROXY_CONSTMETHOD0(RtpTransportParameters, GetRtpTransportParameters)
protected:
RtpTransportAdapter* GetInternal() override {
return internal();
@@ -38,6 +42,10 @@ PROXY_CONSTMETHOD0(PacketTransportInterface*, GetRtpPacketTransport)
PROXY_CONSTMETHOD0(PacketTransportInterface*, GetRtcpPacketTransport)
PROXY_METHOD1(RTCError, SetRtcpParameters, const RtcpParameters&)
PROXY_CONSTMETHOD0(RtcpParameters, GetRtcpParameters)
+PROXY_METHOD1(RTCError,
+ SetRtpTransportParameters,
+ const RtpTransportParameters&)
+PROXY_CONSTMETHOD0(RtpTransportParameters, GetRtpTransportParameters)
PROXY_METHOD1(RTCError, SetSrtpSendKey, const cricket::CryptoParams&)
PROXY_METHOD1(RTCError, SetSrtpReceiveKey, const cricket::CryptoParams&)
protected:
@@ -178,6 +186,21 @@ RTCError RtpTransportAdapter::SetRtcpParameters(
return RTCError::OK();
}
+RTCError RtpTransportAdapter::SetRtpTransportParameters(
+ const RtpTransportParameters& parameters) {
+ RTCError err =
+ rtp_transport_controller_->SetRtpTransportParameters(parameters);
Taylor Brandstetter 2017/07/12 16:19:50 Ok, so setting RTP transport parameters on one Rtp
sprang_webrtc 2017/07/16 09:34:03 That was the idea, since the keep-alive is about k
Taylor Brandstetter 2017/07/17 23:13:11 We may be confusing terminology. Here's what the
ilnik 2017/07/21 12:21:18 Done.
+ if (!err.ok()) {
+ return err;
+ }
+ rtp_transport_parameters_ = parameters;
+ return RTCError::OK();
+}
+
+RtpTransportParameters RtpTransportAdapter::GetRtpTransportParameters() const {
+ return rtp_transport_parameters_;
+}
+
RTCError RtpTransportAdapter::SetSrtpSendKey(
const cricket::CryptoParams& params) {
if (send_key_) {

Powered by Google App Engine
This is Rietveld 408576698