| OLD | NEW |
| 1 /* | 1 /* |
| 2 * libjingle | 2 * libjingle |
| 3 * Copyright 2012 Google Inc. | 3 * Copyright 2012 Google Inc. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
| 9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 class VideoTrack : public MediaStreamTrack<VideoTrackInterface> { | 40 class VideoTrack : public MediaStreamTrack<VideoTrackInterface> { |
| 41 public: | 41 public: |
| 42 static rtc::scoped_refptr<VideoTrack> Create( | 42 static rtc::scoped_refptr<VideoTrack> Create( |
| 43 const std::string& label, VideoSourceInterface* source); | 43 const std::string& label, VideoSourceInterface* source); |
| 44 | 44 |
| 45 virtual void AddRenderer(VideoRendererInterface* renderer); | 45 virtual void AddRenderer(VideoRendererInterface* renderer); |
| 46 virtual void RemoveRenderer(VideoRendererInterface* renderer); | 46 virtual void RemoveRenderer(VideoRendererInterface* renderer); |
| 47 virtual VideoSourceInterface* GetSource() const { | 47 virtual VideoSourceInterface* GetSource() const { |
| 48 return video_source_.get(); | 48 return video_source_.get(); |
| 49 } | 49 } |
| 50 rtc::VideoSinkInterface<cricket::VideoFrame>* GetSink() override; |
| 50 virtual bool set_enabled(bool enable); | 51 virtual bool set_enabled(bool enable); |
| 51 virtual std::string kind() const; | 52 virtual std::string kind() const; |
| 52 | 53 |
| 53 protected: | 54 protected: |
| 54 VideoTrack(const std::string& id, VideoSourceInterface* video_source); | 55 VideoTrack(const std::string& id, VideoSourceInterface* video_source); |
| 55 ~VideoTrack(); | 56 ~VideoTrack(); |
| 56 | 57 |
| 57 private: | 58 private: |
| 58 VideoTrackRenderers renderers_; | 59 VideoTrackRenderers renderers_; |
| 59 rtc::scoped_refptr<VideoSourceInterface> video_source_; | 60 rtc::scoped_refptr<VideoSourceInterface> video_source_; |
| 60 }; | 61 }; |
| 61 | 62 |
| 62 } // namespace webrtc | 63 } // namespace webrtc |
| 63 | 64 |
| 64 #endif // TALK_APP_WEBRTC_VIDEOTRACK_H_ | 65 #endif // TALK_APP_WEBRTC_VIDEOTRACK_H_ |
| OLD | NEW |