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

Unified Diff: remoting/protocol/webrtc_dummy_video_capturer.h

Issue 1846893002: Interface with webrtc through encoded frames (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed sergey comment 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/protocol/webrtc_connection_to_client.cc ('k') | remoting/protocol/webrtc_dummy_video_capturer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/webrtc_dummy_video_capturer.h
diff --git a/remoting/protocol/webrtc_dummy_video_capturer.h b/remoting/protocol/webrtc_dummy_video_capturer.h
new file mode 100644
index 0000000000000000000000000000000000000000..7aa25aa4f74d9e84449d86115985e78670ad585b
--- /dev/null
+++ b/remoting/protocol/webrtc_dummy_video_capturer.h
@@ -0,0 +1,45 @@
+// Copyright 2016 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 REMOTING_PROTOCOL_WEBRTC_DUMMY_VIDEO_CAPTURER_H_
+#define REMOTING_PROTOCOL_WEBRTC_DUMMY_VIDEO_CAPTURER_H_
+
+#include <memory>
+#include <vector>
+
+#include "base/macros.h"
+#include "remoting/protocol/webrtc_frame_scheduler.h"
+#include "third_party/webrtc/media/base/videocapturer.h"
+
+namespace remoting {
+namespace protocol {
+
+// A dummy video capturer needed to create peer connection. We do not supply
+// captured frames throught this interface, but instead provide encoded
+// frames to WebRtc. We expect this requirement to go away once we have
+// proper support for providing encoded frames to WebRtc through
+// VideoSourceInterface
+class WebRtcDummyVideoCapturer : public cricket::VideoCapturer {
+ public:
+ explicit WebRtcDummyVideoCapturer(
+ std::unique_ptr<WebRtcFrameScheduler> frame_scheduler);
+ ~WebRtcDummyVideoCapturer() override;
+
+ cricket::CaptureState Start(
+ const cricket::VideoFormat& capture_format) override;
+ void Stop() override;
+ bool IsRunning() override;
+ bool IsScreencast() const override;
+ bool GetPreferredFourccs(std::vector<uint32_t>* fourccs) override;
+
+ private:
+ std::unique_ptr<WebRtcFrameScheduler> frame_scheduler_;
+
+ DISALLOW_COPY_AND_ASSIGN(WebRtcDummyVideoCapturer);
+};
+
+} // namespace protocol
+} // namespace remoting
+
+#endif // REMOTING_PROTOCOL_WEBRTC_DUMMY_VIDEO_CAPTURER_H_
« no previous file with comments | « remoting/protocol/webrtc_connection_to_client.cc ('k') | remoting/protocol/webrtc_dummy_video_capturer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698