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) { |