Wire up RTP keep-alive in ortc api.
[This CL is work in progress.]
Wire up the rtp keep-alive in webrtc::Call::Config using new
SetRtpTransportParameters() method on RtpTransportInterface.
BUG=webrtc:7907
Review-Url: https://codereview.webrtc.org/2981513002
Cr-Commit-Position: refs/heads/master@{#19287}
diff --git a/webrtc/video/video_send_stream_tests.cc b/webrtc/video/video_send_stream_tests.cc
index 8352d4f..0d5ba7d 100644
--- a/webrtc/video/video_send_stream_tests.cc
+++ b/webrtc/video/video_send_stream_tests.cc
@@ -12,6 +12,7 @@
#include <vector>
#include "webrtc/call/call.h"
+#include "webrtc/call/rtp_transport_controller_send.h"
#include "webrtc/common_video/include/frame_callback.h"
#include "webrtc/common_video/include/video_frame.h"
#include "webrtc/modules/rtp_rtcp/include/rtp_header_parser.h"
@@ -3379,12 +3380,12 @@
public:
KeepaliveObserver() : SendTest(kDefaultTimeoutMs) {}
- Call::Config GetSenderCallConfig() override {
- Call::Config config = SendTest::GetSenderCallConfig();
- config.keepalive_config.timeout_interval_ms = kTimeoutMs;
- config.keepalive_config.payload_type =
- CallTest::kDefaultKeepalivePayloadType;
- return config;
+ void OnRtpTransportControllerSendCreated(
+ RtpTransportControllerSend* controller) override {
+ RtpKeepAliveConfig config;
+ config.timeout_interval_ms = kTimeoutMs;
+ config.payload_type = CallTest::kDefaultKeepalivePayloadType;
+ controller->SetKeepAliveConfig(config);
}
private: