| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2015 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 stream_id_ = stream_id; | 94 stream_id_ = stream_id; |
| 95 } | 95 } |
| 96 std::string stream_id() const override { return stream_id_; } | 96 std::string stream_id() const override { return stream_id_; } |
| 97 | 97 |
| 98 void Stop() override; | 98 void Stop() override; |
| 99 | 99 |
| 100 RtpParameters GetParameters() const; | 100 RtpParameters GetParameters() const; |
| 101 bool SetParameters(const RtpParameters& parameters); | 101 bool SetParameters(const RtpParameters& parameters); |
| 102 | 102 |
| 103 private: | 103 private: |
| 104 // TODO(nisse): Since SSRC == 0 is technically valid, figure out |
| 105 // some other way to test if we have a valid SSRC. |
| 104 bool can_send_track() const { return track_ && ssrc_; } | 106 bool can_send_track() const { return track_ && ssrc_; } |
| 105 // Helper function to construct options for | 107 // Helper function to construct options for |
| 106 // AudioProviderInterface::SetAudioSend. | 108 // AudioProviderInterface::SetAudioSend. |
| 107 void SetAudioSend(); | 109 void SetAudioSend(); |
| 108 | 110 |
| 109 std::string id_; | 111 std::string id_; |
| 110 std::string stream_id_; | 112 std::string stream_id_; |
| 111 AudioProviderInterface* provider_; | 113 AudioProviderInterface* provider_; |
| 112 StatsCollector* stats_; | 114 StatsCollector* stats_; |
| 113 rtc::scoped_refptr<AudioTrackInterface> track_; | 115 rtc::scoped_refptr<AudioTrackInterface> track_; |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 VideoProviderInterface* provider_; | 177 VideoProviderInterface* provider_; |
| 176 rtc::scoped_refptr<VideoTrackInterface> track_; | 178 rtc::scoped_refptr<VideoTrackInterface> track_; |
| 177 uint32_t ssrc_ = 0; | 179 uint32_t ssrc_ = 0; |
| 178 bool cached_track_enabled_ = false; | 180 bool cached_track_enabled_ = false; |
| 179 bool stopped_ = false; | 181 bool stopped_ = false; |
| 180 }; | 182 }; |
| 181 | 183 |
| 182 } // namespace webrtc | 184 } // namespace webrtc |
| 183 | 185 |
| 184 #endif // WEBRTC_API_RTPSENDER_H_ | 186 #endif // WEBRTC_API_RTPSENDER_H_ |
| OLD | NEW |