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

Unified Diff: talk/app/webrtc/statscollector.cc

Issue 1307633007: add mediaType field to ssrc stat (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase Created 4 years, 11 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
« no previous file with comments | « no previous file | talk/app/webrtc/statscollector_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: talk/app/webrtc/statscollector.cc
diff --git a/talk/app/webrtc/statscollector.cc b/talk/app/webrtc/statscollector.cc
index b514b42feeaf4369e538167f4d466f6006a52d66..883766a36c0909d4bb764f807eb364e425481726 100644
--- a/talk/app/webrtc/statscollector.cc
+++ b/talk/app/webrtc/statscollector.cc
@@ -177,6 +177,7 @@ void ExtractStats(const cricket::VoiceReceiverInfo& info, StatsReport* report) {
info.bytes_rcvd);
report->AddInt64(StatsReport::kStatsValueNameCaptureStartNtpTimeMs,
info.capture_start_ntp_time_ms);
+ report->AddString(StatsReport::kStatsValueNameMediaType, "audio");
}
void ExtractStats(const cricket::VoiceSenderInfo& info, StatsReport* report) {
@@ -197,6 +198,7 @@ void ExtractStats(const cricket::VoiceSenderInfo& info, StatsReport* report) {
for (const auto& i : ints)
report->AddInt(i.name, i.value);
+ report->AddString(StatsReport::kStatsValueNameMediaType, "audio");
}
void ExtractStats(const cricket::VideoReceiverInfo& info, StatsReport* report) {
@@ -230,6 +232,7 @@ void ExtractStats(const cricket::VideoReceiverInfo& info, StatsReport* report) {
for (const auto& i : ints)
report->AddInt(i.name, i.value);
+ report->AddString(StatsReport::kStatsValueNameMediaType, "video");
}
void ExtractStats(const cricket::VideoSenderInfo& info, StatsReport* report) {
@@ -264,6 +267,7 @@ void ExtractStats(const cricket::VideoSenderInfo& info, StatsReport* report) {
for (const auto& i : ints)
report->AddInt(i.name, i.value);
+ report->AddString(StatsReport::kStatsValueNameMediaType, "video");
}
void ExtractStats(const cricket::BandwidthEstimationInfo& info,
« no previous file with comments | « no previous file | talk/app/webrtc/statscollector_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698