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

Unified Diff: webrtc/pc/channel.cc

Issue 2770233003: Implemented the GetSources() in native code. (Closed)
Patch Set: Try to fix the build failure on the bots. Created 3 years, 8 months 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/pc/channel.cc
diff --git a/webrtc/pc/channel.cc b/webrtc/pc/channel.cc
index ecc1c9a633c6d4a935a146f048483256ccdc5d49..d8a73362d317f762370b55544c0762df93b8a262 100644
--- a/webrtc/pc/channel.cc
+++ b/webrtc/pc/channel.cc
@@ -23,6 +23,7 @@
#include "webrtc/base/trace_event.h"
#include "webrtc/media/base/mediaconstants.h"
#include "webrtc/media/base/rtputils.h"
+#include "webrtc/media/engine/webrtcvoiceengine.h"
#include "webrtc/p2p/base/packettransportinternal.h"
#include "webrtc/pc/channelmanager.h"
@@ -1663,6 +1664,14 @@ bool VoiceChannel::GetStats(VoiceMediaInfo* stats) {
media_channel(), stats));
}
+std::vector<webrtc::RtpContributingSource> VoiceChannel::GetContributingSources(
+ uint32_t ssrc) {
+ return worker_thread()->Invoke<std::vector<webrtc::RtpContributingSource>>(
+ RTC_FROM_HERE,
+ Bind(&WebRtcVoiceMediaChannel::GetContributingSources,
the sun 2017/04/04 21:09:59 Looking at the other methods, the pattern is to ca
Zhi Huang 2017/04/05 04:16:04 I didn't add the method to the base class because
+ static_cast<WebRtcVoiceMediaChannel*>(media_channel()), ssrc));
+}
+
void VoiceChannel::StartMediaMonitor(int cms) {
media_monitor_.reset(new VoiceMediaMonitor(media_channel(), worker_thread(),
rtc::Thread::Current()));

Powered by Google App Engine
This is Rietveld 408576698