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

Side by Side Diff: remoting/protocol/webrtc_dummy_video_capturer.cc

Issue 1846893002: Interface with webrtc through encoded frames (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed sergeyu comments and rebased Created 4 years, 8 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 unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698