OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef REMOTING_PROTOCOL_WEBRTC_DUMMY_VIDEO_CAPTURER_H_ |
| 6 #define REMOTING_PROTOCOL_WEBRTC_DUMMY_VIDEO_CAPTURER_H_ |
| 7 |
| 8 #include <vector> |
| 9 |
| 10 #include "base/macros.h" |
| 11 #include "remoting/protocol/webrtc_frame_scheduler.h" |
| 12 #include "third_party/webrtc/media/base/videocapturer.h" |
| 13 |
| 14 namespace remoting { |
| 15 namespace protocol { |
| 16 |
| 17 // A dummy video capturer needed to create peer connection. We do not supply |
| 18 // captured frames throught this interface, but instead provide encoded |
| 19 // frames to WebRtc. We expect this requirement to go away once we have |
| 20 // proper support for providing encoded frames to WebRtc through |
| 21 // VideoSourceInterface |
| 22 class WebRtcDummyVideoCapturer : public cricket::VideoCapturer { |
| 23 public: |
| 24 explicit WebRtcDummyVideoCapturer( |
| 25 scoped_ptr<WebRtcFrameScheduler> frame_scheduler); |
| 26 ~WebRtcDummyVideoCapturer() override; |
| 27 |
| 28 cricket::CaptureState Start( |
| 29 const cricket::VideoFormat& capture_format) override; |
| 30 void Stop() override; |
| 31 bool IsRunning() override; |
| 32 bool IsScreencast() const override; |
| 33 bool GetPreferredFourccs(std::vector<uint32_t>* fourccs) override; |
| 34 |
| 35 private: |
| 36 scoped_ptr<WebRtcFrameScheduler> frame_scheduler_; |
| 37 |
| 38 DISALLOW_COPY_AND_ASSIGN(WebRtcDummyVideoCapturer); |
| 39 }; |
| 40 |
| 41 } // namespace protocol |
| 42 } // namespace remoting |
| 43 |
| 44 #endif // REMOTING_PROTOCOL_WEBRTC_DUMMY_VIDEO_CAPTURER_H_ |
OLD | NEW |