Index: webrtc/api/webrtcsession.cc |
diff --git a/webrtc/api/webrtcsession.cc b/webrtc/api/webrtcsession.cc |
index 3d9b6fbc89ede844416fd3d85558a1a19b01eca2..593d4292863ad75fcabeb01c024e1f4b2e4297ed 100644 |
--- a/webrtc/api/webrtcsession.cc |
+++ b/webrtc/api/webrtcsession.cc |
@@ -1244,6 +1244,23 @@ void WebRtcSession::SetRawAudioSink(uint32_t ssrc, |
voice_channel_->SetRawAudioSink(ssrc, rtc::ScopedToUnique(std::move(sink))); |
} |
+RtpParameters WebRtcSession::GetAudioRtpParameters(uint32_t ssrc) const { |
+ ASSERT(signaling_thread()->IsCurrent()); |
+ if (voice_channel_) { |
+ return voice_channel_->GetRtpParameters(ssrc); |
+ } |
+ return RtpParameters(); |
+} |
+ |
+bool WebRtcSession::SetAudioRtpParameters(uint32_t ssrc, |
+ const RtpParameters& parameters) { |
+ ASSERT(signaling_thread()->IsCurrent()); |
+ if (!voice_channel_) { |
+ return false; |
+ } |
+ return voice_channel_->SetRtpParameters(ssrc, parameters); |
+} |
+ |
bool WebRtcSession::SetCaptureDevice(uint32_t ssrc, |
cricket::VideoCapturer* camera) { |
ASSERT(signaling_thread()->IsCurrent()); |
@@ -1297,6 +1314,23 @@ void WebRtcSession::SetVideoSend(uint32_t ssrc, |
} |
} |
+RtpParameters WebRtcSession::GetVideoRtpParameters(uint32_t ssrc) const { |
+ ASSERT(signaling_thread()->IsCurrent()); |
+ if (video_channel_) { |
+ return video_channel_->GetRtpParameters(ssrc); |
+ } |
+ return RtpParameters(); |
+} |
+ |
+bool WebRtcSession::SetVideoRtpParameters(uint32_t ssrc, |
+ const RtpParameters& parameters) { |
+ ASSERT(signaling_thread()->IsCurrent()); |
+ if (!video_channel_) { |
+ return false; |
+ } |
+ return video_channel_->SetRtpParameters(ssrc, parameters); |
+} |
+ |
bool WebRtcSession::CanInsertDtmf(const std::string& track_id) { |
ASSERT(signaling_thread()->IsCurrent()); |
if (!voice_channel_) { |