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

Unified Diff: content/browser/resources/media/webrtc_internals.js

Issue 617093003: Add MediaStreamSource frame rate calculation to the tracker. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding type name. Fixing IPC type problem. Created 6 years, 3 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: content/browser/resources/media/webrtc_internals.js
diff --git a/content/browser/resources/media/webrtc_internals.js b/content/browser/resources/media/webrtc_internals.js
index 3a1f9cd25c19e86fd4e746faf192bc12195ddcb1..c66c3ae20e5ebf5663a9f9e0d3f8b0a24c2c4f10 100644
--- a/content/browser/resources/media/webrtc_internals.js
+++ b/content/browser/resources/media/webrtc_internals.js
@@ -299,6 +299,18 @@ function addGetUserMedia(data) {
/**
+ * Handles the report of stats.
+ *
+ * @param {!Object} data The object containing pid, video_id, fps,
+ * dropped_frames, bla, bla.
+ */
+function addVideoStats(data) {
+ console.log("addvideoStats video source name" + data.video_id + " frame rate" + data.input_frame_rate + " dropped frames " + data.number_of_dropped_frames);
+ // TODO
+}
+
+
+/**
* Removes the getUserMedia requests from the specified |rid|.
*
* @param {!Object} data The object containing rid {number}, the render id.
« no previous file with comments | « content/browser/renderer_host/media/video_capture_controller.cc ('k') | content/common/media/media_param_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698