OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2016 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 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 | 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 | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 21 matching lines...) Expand all Loading... |
32 | 32 |
33 SourceState state() const override { return state_; } | 33 SourceState state() const override { return state_; } |
34 bool remote() const override { return remote_; } | 34 bool remote() const override { return remote_; } |
35 | 35 |
36 void Stop() override{}; | 36 void Stop() override{}; |
37 void Restart() override{}; | 37 void Restart() override{}; |
38 | 38 |
39 virtual bool is_screencast() const { return false; } | 39 virtual bool is_screencast() const { return false; } |
40 virtual bool needs_denoising() const { return false; } | 40 virtual bool needs_denoising() const { return false; } |
41 | 41 |
| 42 bool GetInfo(VideoSourceInfo* info) override { return false; } |
| 43 |
42 void AddOrUpdateSink(rtc::VideoSinkInterface<cricket::VideoFrame>* sink, | 44 void AddOrUpdateSink(rtc::VideoSinkInterface<cricket::VideoFrame>* sink, |
43 const rtc::VideoSinkWants& wants) override; | 45 const rtc::VideoSinkWants& wants) override; |
44 void RemoveSink(rtc::VideoSinkInterface<cricket::VideoFrame>* sink) override; | 46 void RemoveSink(rtc::VideoSinkInterface<cricket::VideoFrame>* sink) override; |
45 | 47 |
46 cricket::VideoCapturer* GetVideoCapturer() override { return nullptr; } | 48 cricket::VideoCapturer* GetVideoCapturer() override { return nullptr; } |
47 | 49 |
48 protected: | 50 protected: |
49 rtc::Thread* worker_thread() { return worker_thread_; } | 51 rtc::Thread* worker_thread() { return worker_thread_; } |
50 | 52 |
51 private: | 53 private: |
52 rtc::VideoSourceInterface<cricket::VideoFrame>* source_; | 54 rtc::VideoSourceInterface<cricket::VideoFrame>* source_; |
53 rtc::Thread* worker_thread_; | 55 rtc::Thread* worker_thread_; |
54 cricket::VideoOptions options_; | 56 cricket::VideoOptions options_; |
55 SourceState state_; | 57 SourceState state_; |
56 const bool remote_; | 58 const bool remote_; |
57 }; | 59 }; |
58 | 60 |
59 } // namespace webrtc | 61 } // namespace webrtc |
60 | 62 |
61 #endif // WEBRTC_API_VIDEOTRACKSOURCE_H_ | 63 #endif // WEBRTC_API_VIDEOTRACKSOURCE_H_ |
OLD | NEW |