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 #include "remoting/protocol/webrtc_dummy_video_capturer.h" |
| 6 |
| 7 #include <vector> |
| 8 |
| 9 namespace remoting { |
| 10 namespace protocol { |
| 11 |
| 12 WebRtcDummyVideoCapturer::WebRtcDummyVideoCapturer( |
| 13 scoped_ptr<WebRtcFrameScheduler> frame_scheduler) |
| 14 : frame_scheduler_(std::move(frame_scheduler)) {} |
| 15 |
| 16 WebRtcDummyVideoCapturer::~WebRtcDummyVideoCapturer() {} |
| 17 |
| 18 cricket::CaptureState WebRtcDummyVideoCapturer::Start( |
| 19 const cricket::VideoFormat& capture_format) { |
| 20 frame_scheduler_->Start(); |
| 21 return cricket::CS_RUNNING; |
| 22 } |
| 23 |
| 24 void WebRtcDummyVideoCapturer::Stop() { |
| 25 frame_scheduler_->Stop(); |
| 26 SetCaptureState(cricket::CS_STOPPED); |
| 27 } |
| 28 |
| 29 bool WebRtcDummyVideoCapturer::IsRunning() { |
| 30 return true; |
| 31 } |
| 32 |
| 33 bool WebRtcDummyVideoCapturer::IsScreencast() const { |
| 34 return true; |
| 35 } |
| 36 |
| 37 bool WebRtcDummyVideoCapturer::GetPreferredFourccs( |
| 38 std::vector<uint32_t>* fourccs) { |
| 39 return true; |
| 40 } |
| 41 |
| 42 } // namespace protocol |
| 43 } // namespace remoting |
OLD | NEW |