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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 // RtpReceiverInternal implementation. | 81 // RtpReceiverInternal implementation. |
82 void Stop() override; | 82 void Stop() override; |
83 uint32_t ssrc() const override { return ssrc_; } | 83 uint32_t ssrc() const override { return ssrc_; } |
84 | 84 |
85 void SetObserver(RtpReceiverObserverInterface* observer) override; | 85 void SetObserver(RtpReceiverObserverInterface* observer) override; |
86 | 86 |
87 // Does not take ownership. | 87 // Does not take ownership. |
88 // Should call SetChannel(nullptr) before |channel| is destroyed. | 88 // Should call SetChannel(nullptr) before |channel| is destroyed. |
89 void SetChannel(cricket::VoiceChannel* channel); | 89 void SetChannel(cricket::VoiceChannel* channel); |
90 | 90 |
| 91 std::vector<RtpSource> GetSources() const override; |
| 92 |
91 private: | 93 private: |
92 void Reconfigure(); | 94 void Reconfigure(); |
93 void OnFirstPacketReceived(cricket::BaseChannel* channel); | 95 void OnFirstPacketReceived(cricket::BaseChannel* channel); |
94 | 96 |
95 const std::string id_; | 97 const std::string id_; |
96 const uint32_t ssrc_; | 98 const uint32_t ssrc_; |
97 cricket::VoiceChannel* channel_; | 99 cricket::VoiceChannel* channel_; |
98 const rtc::scoped_refptr<AudioTrackInterface> track_; | 100 const rtc::scoped_refptr<AudioTrackInterface> track_; |
99 bool cached_track_enabled_; | 101 bool cached_track_enabled_; |
100 double cached_volume_ = 1; | 102 double cached_volume_ = 1; |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 rtc::scoped_refptr<VideoTrackSource> source_; | 160 rtc::scoped_refptr<VideoTrackSource> source_; |
159 rtc::scoped_refptr<VideoTrackInterface> track_; | 161 rtc::scoped_refptr<VideoTrackInterface> track_; |
160 bool stopped_ = false; | 162 bool stopped_ = false; |
161 RtpReceiverObserverInterface* observer_ = nullptr; | 163 RtpReceiverObserverInterface* observer_ = nullptr; |
162 bool received_first_packet_ = false; | 164 bool received_first_packet_ = false; |
163 }; | 165 }; |
164 | 166 |
165 } // namespace webrtc | 167 } // namespace webrtc |
166 | 168 |
167 #endif // WEBRTC_PC_RTPRECEIVER_H_ | 169 #endif // WEBRTC_PC_RTPRECEIVER_H_ |
OLD | NEW |