| 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 class VideoSourceInterface; | 139 class VideoSourceInterface; |
| 140 | 140 |
| 141 class VideoTrackInterface : public MediaStreamTrackInterface { | 141 class VideoTrackInterface : public MediaStreamTrackInterface { |
| 142 public: | 142 public: |
| 143 // Register a renderer that will render all frames received on this track. | 143 // Register a renderer that will render all frames received on this track. |
| 144 virtual void AddRenderer(VideoRendererInterface* renderer) = 0; | 144 virtual void AddRenderer(VideoRendererInterface* renderer) = 0; |
| 145 // Deregister a renderer. | 145 // Deregister a renderer. |
| 146 virtual void RemoveRenderer(VideoRendererInterface* renderer) = 0; | 146 virtual void RemoveRenderer(VideoRendererInterface* renderer) = 0; |
| 147 | 147 |
| 148 virtual VideoSourceInterface* GetSource() const = 0; | 148 virtual VideoSourceInterface* GetSource() const = 0; |
| 149 // TODO(nisse): Return type should be changed to |
| 150 // rtc::VideoSinkInterface<cricket::VideoFrame>*, as soon as |
| 151 // VideoProviderInterface::SetVideoPlayout is changed to accept that |
| 152 // type. |
| 153 virtual cricket::VideoRenderer* GetSink() = 0; |
| 149 | 154 |
| 150 protected: | 155 protected: |
| 151 virtual ~VideoTrackInterface() {} | 156 virtual ~VideoTrackInterface() {} |
| 152 }; | 157 }; |
| 153 | 158 |
| 154 // Interface for receiving audio data from a AudioTrack. | 159 // Interface for receiving audio data from a AudioTrack. |
| 155 class AudioTrackSinkInterface { | 160 class AudioTrackSinkInterface { |
| 156 public: | 161 public: |
| 157 virtual void OnData(const void* audio_data, | 162 virtual void OnData(const void* audio_data, |
| 158 int bits_per_sample, | 163 int bits_per_sample, |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 virtual bool RemoveTrack(AudioTrackInterface* track) = 0; | 272 virtual bool RemoveTrack(AudioTrackInterface* track) = 0; |
| 268 virtual bool RemoveTrack(VideoTrackInterface* track) = 0; | 273 virtual bool RemoveTrack(VideoTrackInterface* track) = 0; |
| 269 | 274 |
| 270 protected: | 275 protected: |
| 271 virtual ~MediaStreamInterface() {} | 276 virtual ~MediaStreamInterface() {} |
| 272 }; | 277 }; |
| 273 | 278 |
| 274 } // namespace webrtc | 279 } // namespace webrtc |
| 275 | 280 |
| 276 #endif // TALK_APP_WEBRTC_MEDIASTREAMINTERFACE_H_ | 281 #endif // TALK_APP_WEBRTC_MEDIASTREAMINTERFACE_H_ |
| OLD | NEW |