OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2012 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 15 matching lines...) Expand all Loading... |
26 const std::string& label, | 26 const std::string& label, |
27 VideoTrackSourceInterface* source); | 27 VideoTrackSourceInterface* source); |
28 | 28 |
29 void AddOrUpdateSink(rtc::VideoSinkInterface<cricket::VideoFrame>* sink, | 29 void AddOrUpdateSink(rtc::VideoSinkInterface<cricket::VideoFrame>* sink, |
30 const rtc::VideoSinkWants& wants) override; | 30 const rtc::VideoSinkWants& wants) override; |
31 void RemoveSink(rtc::VideoSinkInterface<cricket::VideoFrame>* sink) override; | 31 void RemoveSink(rtc::VideoSinkInterface<cricket::VideoFrame>* sink) override; |
32 | 32 |
33 virtual VideoTrackSourceInterface* GetSource() const { | 33 virtual VideoTrackSourceInterface* GetSource() const { |
34 return video_source_.get(); | 34 return video_source_.get(); |
35 } | 35 } |
36 rtc::VideoSinkInterface<cricket::VideoFrame>* GetSink() override; | |
37 virtual bool set_enabled(bool enable); | 36 virtual bool set_enabled(bool enable); |
38 virtual std::string kind() const; | 37 virtual std::string kind() const; |
39 | 38 |
40 protected: | 39 protected: |
41 VideoTrack(const std::string& id, VideoTrackSourceInterface* video_source); | 40 VideoTrack(const std::string& id, VideoTrackSourceInterface* video_source); |
42 ~VideoTrack(); | 41 ~VideoTrack(); |
43 | 42 |
44 private: | 43 private: |
45 VideoTrackRenderers renderers_; | 44 VideoTrackRenderers renderers_; |
46 rtc::scoped_refptr<VideoTrackSourceInterface> video_source_; | 45 rtc::scoped_refptr<VideoTrackSourceInterface> video_source_; |
47 }; | 46 }; |
48 | 47 |
49 } // namespace webrtc | 48 } // namespace webrtc |
50 | 49 |
51 #endif // WEBRTC_API_VIDEOTRACK_H_ | 50 #endif // WEBRTC_API_VIDEOTRACK_H_ |
OLD | NEW |