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

Unified Diff: content/common/media/media_stream_options.h

Issue 2664673002: Media Capture Depth Stream Extensions API: videoKind settings and constraint. (Closed)
Patch Set: Created 3 years, 10 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/common/media/media_stream_options.h
diff --git a/content/common/media/media_stream_options.h b/content/common/media/media_stream_options.h
index 55f568736b9480492aacddf0d31ac9bfd58ebeac..e2b542226550f652411e829798ee0b7dc4a47fd8 100644
--- a/content/common/media/media_stream_options.h
+++ b/content/common/media/media_stream_options.h
@@ -21,6 +21,14 @@ CONTENT_EXPORT extern const char kMediaStreamSourceScreen[];
CONTENT_EXPORT extern const char kMediaStreamSourceDesktop[];
CONTENT_EXPORT extern const char kMediaStreamSourceSystem[];
+// The type of video stream. See https://w3c.github.io/mediacapture-depth.
+enum VideoKind {
+ VIDEO_KIND_NO_CONSTRAINT,
Guido Urdaneta 2017/02/07 10:26:04 would VIDEO_KIND_NONE be better name? At this poin
aleksandar.stojiljkovic 2017/02/07 11:33:49 Done. I didn't like it's semantics when using it a
+ VIDEO_KIND_COLOR,
+ VIDEO_KIND_DEPTH,
+ NUM_VIDEO_KINDS,
+};
+
struct CONTENT_EXPORT TrackControls {
public:
TrackControls();
@@ -54,6 +62,8 @@ struct CONTENT_EXPORT StreamControls {
// See crbug.com/564574 for discussion on possibly #ifdef'ing this out.
bool hotword_enabled; // kMediaStreamAudioHotword = "googHotword";
bool disable_local_echo;
+ // https://w3c.github.io/mediacapture-depth
+ VideoKind video_kind;
};
// StreamDeviceInfo describes information about a device.

Powered by Google App Engine
This is Rietveld 408576698