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_) { |