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 16 matching lines...) Expand all Loading... |
27 void SetState(SourceState new_state); | 27 void SetState(SourceState new_state); |
28 // OnSourceDestroyed clears this instance pointer to |source_|. It is useful | 28 // OnSourceDestroyed clears this instance pointer to |source_|. It is useful |
29 // when the underlying rtc::VideoSourceInterface is destroyed before the | 29 // when the underlying rtc::VideoSourceInterface is destroyed before the |
30 // reference counted VideoTrackSource. | 30 // reference counted VideoTrackSource. |
31 void OnSourceDestroyed(); | 31 void OnSourceDestroyed(); |
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{}; | |
38 | 37 |
39 bool is_screencast() const override { return false; } | 38 bool is_screencast() const override { return false; } |
40 rtc::Optional<bool> needs_denoising() const override { | 39 rtc::Optional<bool> needs_denoising() const override { |
41 return rtc::Optional<bool>(); } | 40 return rtc::Optional<bool>(); } |
42 | 41 |
43 bool GetStats(Stats* stats) override { return false; } | 42 bool GetStats(Stats* stats) override { return false; } |
44 | 43 |
45 void AddOrUpdateSink(rtc::VideoSinkInterface<cricket::VideoFrame>* sink, | 44 void AddOrUpdateSink(rtc::VideoSinkInterface<cricket::VideoFrame>* sink, |
46 const rtc::VideoSinkWants& wants) override; | 45 const rtc::VideoSinkWants& wants) override; |
47 void RemoveSink(rtc::VideoSinkInterface<cricket::VideoFrame>* sink) override; | 46 void RemoveSink(rtc::VideoSinkInterface<cricket::VideoFrame>* sink) override; |
48 | 47 |
49 private: | 48 private: |
50 rtc::ThreadChecker worker_thread_checker_; | 49 rtc::ThreadChecker worker_thread_checker_; |
51 rtc::VideoSourceInterface<cricket::VideoFrame>* source_; | 50 rtc::VideoSourceInterface<cricket::VideoFrame>* source_; |
52 cricket::VideoOptions options_; | 51 cricket::VideoOptions options_; |
53 SourceState state_; | 52 SourceState state_; |
54 const bool remote_; | 53 const bool remote_; |
55 }; | 54 }; |
56 | 55 |
57 } // namespace webrtc | 56 } // namespace webrtc |
58 | 57 |
59 #endif // WEBRTC_API_VIDEOTRACKSOURCE_H_ | 58 #endif // WEBRTC_API_VIDEOTRACKSOURCE_H_ |
OLD | NEW |