Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(628)

Unified Diff: webrtc/api/peerconnection.cc

Issue 2539213003: Support external audio mixer. (Closed)
Patch Set: Review response Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/api/peerconnection.cc
diff --git a/webrtc/api/peerconnection.cc b/webrtc/api/peerconnection.cc
index 46bdec594a9c90fcd1630db748921237807902d2..e7ec7d4f426308ac6470ae498d6a88a406006850 100644
--- a/webrtc/api/peerconnection.cc
+++ b/webrtc/api/peerconnection.cc
@@ -1353,6 +1353,15 @@ void PeerConnection::Close() {
session_->Close();
}
+std::vector<uint32_t> PeerConnection::GetRemoteAudioTrackSsrcs() {
the sun 2016/12/07 15:56:08 Is this utility really needed? Can you use PC::rem
GeorgeZ 2016/12/07 18:28:17 PC::remote_streams() provides rtc::scoped_refptr<S
the sun 2016/12/08 07:52:29 AudioTrackInterface inherits from MediaStreamTrack
+ std::vector<uint32_t> ssrcs;
+ TrackInfos* infos = GetRemoteTracks(cricket::MEDIA_TYPE_AUDIO);
+ for (const auto& info : *infos)
+ ssrcs.push_back(info.ssrc);
+
+ return ssrcs;
+}
+
void PeerConnection::OnSessionStateChange(WebRtcSession* /*session*/,
WebRtcSession::State state) {
switch (state) {

Powered by Google App Engine
This is Rietveld 408576698