Index: webrtc/api/rtpreceiver.cc |
diff --git a/webrtc/api/rtpreceiver.cc b/webrtc/api/rtpreceiver.cc |
index 38245dcccf54c1e403301d9d3b3a975890c21f79..1b52ce27def13f255c245d353aa239f4d64d1078 100644 |
--- a/webrtc/api/rtpreceiver.cc |
+++ b/webrtc/api/rtpreceiver.cc |
@@ -14,6 +14,7 @@ |
#include "webrtc/api/audiotrack.h" |
#include "webrtc/api/videosourceproxy.h" |
#include "webrtc/api/videotrack.h" |
+#include "webrtc/base/trace_event.h" |
namespace webrtc { |
@@ -66,6 +67,15 @@ void AudioRtpReceiver::Stop() { |
provider_ = nullptr; |
} |
+RtpParameters AudioRtpReceiver::GetParameters() const { |
+ return provider_->GetAudioRtpReceiveParameters(ssrc_); |
+} |
+ |
+bool AudioRtpReceiver::SetParameters(const RtpParameters& parameters) { |
+ TRACE_EVENT0("webrtc", "AudioRtpReceiver::SetParameters"); |
+ return provider_->SetAudioRtpReceiveParameters(ssrc_, parameters); |
+} |
+ |
void AudioRtpReceiver::Reconfigure() { |
if (!provider_) { |
return; |
@@ -113,4 +123,13 @@ void VideoRtpReceiver::Stop() { |
provider_ = nullptr; |
} |
+RtpParameters VideoRtpReceiver::GetParameters() const { |
+ return provider_->GetVideoRtpReceiveParameters(ssrc_); |
+} |
+ |
+bool VideoRtpReceiver::SetParameters(const RtpParameters& parameters) { |
+ TRACE_EVENT0("webrtc", "VideoRtpReceiver::SetParameters"); |
+ return provider_->SetVideoRtpReceiveParameters(ssrc_, parameters); |
+} |
+ |
} // namespace webrtc |