OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2013 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #ifndef WEBRTC_API_REMOTEVIDEOCAPTURER_H_ | 11 #ifndef WEBRTC_API_REMOTEVIDEOCAPTURER_H_ |
12 #define WEBRTC_API_REMOTEVIDEOCAPTURER_H_ | 12 #define WEBRTC_API_REMOTEVIDEOCAPTURER_H_ |
13 | 13 |
14 #include <vector> | 14 // TODO(perkj): Remove this file once Chrome gyp file doesn't depend on it. |
15 | |
16 #include "webrtc/api/mediastreaminterface.h" | |
17 #include "webrtc/media/base/videocapturer.h" | |
18 #include "webrtc/media/base/videorenderer.h" | |
19 | |
20 namespace webrtc { | |
21 | |
22 // RemoteVideoCapturer implements a simple cricket::VideoCapturer which | |
23 // gets decoded remote video frames from media channel. | |
24 // It's used as the remote video source's VideoCapturer so that the remote video | |
25 // can be used as a cricket::VideoCapturer and in that way a remote video stream | |
26 // can implement the MediaStreamSourceInterface. | |
27 class RemoteVideoCapturer : public cricket::VideoCapturer { | |
28 public: | |
29 RemoteVideoCapturer(); | |
30 virtual ~RemoteVideoCapturer(); | |
31 | |
32 // cricket::VideoCapturer implementation. | |
33 cricket::CaptureState Start( | |
34 const cricket::VideoFormat& capture_format) override; | |
35 void Stop() override; | |
36 bool IsRunning() override; | |
37 bool GetPreferredFourccs(std::vector<uint32_t>* fourccs) override; | |
38 bool GetBestCaptureFormat(const cricket::VideoFormat& desired, | |
39 cricket::VideoFormat* best_format) override; | |
40 bool IsScreencast() const override; | |
41 | |
42 private: | |
43 RTC_DISALLOW_COPY_AND_ASSIGN(RemoteVideoCapturer); | |
44 }; | |
45 | |
46 } // namespace webrtc | |
47 | 15 |
48 #endif // WEBRTC_API_REMOTEVIDEOCAPTURER_H_ | 16 #endif // WEBRTC_API_REMOTEVIDEOCAPTURER_H_ |
OLD | NEW |