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

Unified Diff: content/public/renderer/media_stream_track_api.h

Issue 1672713002: MediaStreamVideoSource exports current video format (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added public API Created 4 years, 9 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 | « content/content_renderer.gypi ('k') | content/public/renderer/media_stream_track_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/renderer/media_stream_track_api.h
diff --git a/content/public/renderer/media_stream_track_api.h b/content/public/renderer/media_stream_track_api.h
new file mode 100644
index 0000000000000000000000000000000000000000..53635aea40a86d5c4b0c35b0db3b5b76436dcdf3
--- /dev/null
+++ b/content/public/renderer/media_stream_track_api.h
@@ -0,0 +1,25 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_PUBLIC_RENDERER_MEDIA_STREAM_TRACK_API_H_
+#define CONTENT_PUBLIC_RENDERER_MEDIA_STREAM_TRACK_API_H_
+
+#include "content/common/content_export.h"
+#include "media/base/video_capture_types.h"
+
+namespace blink {
+class WebMediaStreamTrack;
+}
+
+namespace content {
+
+// On success returns pointer to the current format of the given video track;
+// returns nullptr on failure (if the argument is invalid or if the format
+// cannot be retrieved at the moment).
+CONTENT_EXPORT const media::VideoCaptureFormat* GetCurrentVideoTrackFormat(
miu 2016/03/12 01:23:14 Maybe this function should go in content/public/re
+ const blink::WebMediaStreamTrack& video_track);
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_RENDERER_MEDIA_STREAM_TRACK_API_H_
« no previous file with comments | « content/content_renderer.gypi ('k') | content/public/renderer/media_stream_track_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698