OLD | NEW |
(Empty) | |
| 1 /* |
| 2 * Copyright 2013 The WebRTC project authors. All Rights Reserved. |
| 3 * |
| 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 |
| 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ |
| 10 |
| 11 #ifndef WEBRTC_API_REMOTEVIDEOCAPTURER_H_ |
| 12 #define WEBRTC_API_REMOTEVIDEOCAPTURER_H_ |
| 13 |
| 14 #include <vector> |
| 15 |
| 16 #include "talk/media/base/videocapturer.h" |
| 17 #include "talk/media/base/videorenderer.h" |
| 18 #include "webrtc/api/mediastreaminterface.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 |
| 48 #endif // WEBRTC_API_REMOTEVIDEOCAPTURER_H_ |
OLD | NEW |