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

Unified Diff: media/base/video_facing.h

Issue 2634263002: Pass camera facing info to audio client (Closed)
Patch Set: rebase 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: media/base/video_facing.h
diff --git a/media/base/video_facing.h b/media/base/video_facing.h
index 9bd0b50e0a52421c1bc14af77c02d9a3f83c534d..bf354c2a70c40e16b9b26f358606695ec6527261 100644
--- a/media/base/video_facing.h
+++ b/media/base/video_facing.h
@@ -13,7 +13,16 @@ enum VideoFacingMode {
MEDIA_VIDEO_FACING_USER,
MEDIA_VIDEO_FACING_ENVIRONMENT,
- NUM_MEDIA_VIDEO_FACING_MODE
+ NUM_MEDIA_VIDEO_FACING_MODES
+};
+
+// Clients interested in video capture events can implement this interface
+// and register the observers to MediaStreamManager or VideoCaptureManager.
+class VideoCaptureObserver {
+ public:
+ virtual ~VideoCaptureObserver() {}
+ virtual void OnVideoCaptureStarted(VideoFacingMode facing) = 0;
+ virtual void OnVideoCaptureStopped(VideoFacingMode facing) = 0;
};
} // namespace media

Powered by Google App Engine
This is Rietveld 408576698