Index: webrtc/api/webrtcsession.cc |
diff --git a/webrtc/api/webrtcsession.cc b/webrtc/api/webrtcsession.cc |
index e5cea14439151afdbc420e77eb7cd09f812a3781..fd85fb7842aacc71814aee09cad76695c6e59d3d 100644 |
--- a/webrtc/api/webrtcsession.cc |
+++ b/webrtc/api/webrtcsession.cc |
@@ -1255,6 +1255,22 @@ void WebRtcSession::SetRawAudioSink(uint32_t ssrc, |
voice_channel_->SetRawAudioSink(ssrc, std::move(sink)); |
} |
+RTCRtpParameters WebRtcSession::GetAudioRtpParameters(uint32_t ssrc) { |
+ ASSERT(signaling_thread()->IsCurrent()); |
+ if (voice_channel_) { |
+ return voice_channel_->GetRtpParameters(ssrc); |
+ } |
+ return RTCRtpParameters(); |
+} |
+ |
+bool WebRtcSession::SetAudioRtpParameters(uint32_t ssrc, |
+ const RTCRtpParameters& parameters) { |
+ ASSERT(signaling_thread()->IsCurrent()); |
+ if (!voice_channel_) |
pthatcher1
2016/03/12 01:21:03
{}s please
skvlad
2016/03/15 21:18:18
Done.
|
+ return false; |
+ return voice_channel_->SetRtpParameters(ssrc, parameters); |
+} |
+ |
bool WebRtcSession::SetCaptureDevice(uint32_t ssrc, |
cricket::VideoCapturer* camera) { |
ASSERT(signaling_thread()->IsCurrent()); |
@@ -1308,6 +1324,22 @@ void WebRtcSession::SetVideoSend(uint32_t ssrc, |
} |
} |
+RTCRtpParameters WebRtcSession::GetVideoRtpParameters(uint32_t ssrc) { |
+ ASSERT(signaling_thread()->IsCurrent()); |
+ if (video_channel_) { |
+ return video_channel_->GetRtpParameters(ssrc); |
+ } |
+ return RTCRtpParameters(); |
+} |
+ |
+bool WebRtcSession::SetVideoRtpParameters(uint32_t ssrc, |
+ const RTCRtpParameters& parameters) { |
+ ASSERT(signaling_thread()->IsCurrent()); |
pthatcher1
2016/03/12 01:21:03
and here
skvlad
2016/03/15 21:18:17
Done.
|
+ 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_) { |