summaryrefslogtreecommitdiff
path: root/chromium/media/base/video_facing.h
blob: bf354c2a70c40e16b9b26f358606695ec6527261 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Copyright 2017 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 MEDIA_BASE_VIDEO_FACING_H_
#define MEDIA_BASE_VIDEO_FACING_H_

namespace media {

// Facing mode for video capture.
enum VideoFacingMode {
  MEDIA_VIDEO_FACING_NONE = 0,
  MEDIA_VIDEO_FACING_USER,
  MEDIA_VIDEO_FACING_ENVIRONMENT,

  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

#endif  // MEDIA_BASE_VIDEO_FACING_H_