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 | |
93 private: | 91 private: |
94 void Reconfigure(); | 92 void Reconfigure(); |
95 void OnFirstPacketReceived(cricket::BaseChannel* channel); | 93 void OnFirstPacketReceived(cricket::BaseChannel* channel); |
96 | 94 |
97 const std::string id_; | 95 const std::string id_; |
98 const uint32_t ssrc_; | 96 const uint32_t ssrc_; |
99 cricket::VoiceChannel* channel_; | 97 cricket::VoiceChannel* channel_; |
100 const rtc::scoped_refptr<AudioTrackInterface> track_; | 98 const rtc::scoped_refptr<AudioTrackInterface> track_; |
101 bool cached_track_enabled_; | 99 bool cached_track_enabled_; |
102 double cached_volume_ = 1; | 100 double cached_volume_ = 1; |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 rtc::scoped_refptr<VideoTrackSource> source_; | 158 rtc::scoped_refptr<VideoTrackSource> source_; |
161 rtc::scoped_refptr<VideoTrackInterface> track_; | 159 rtc::scoped_refptr<VideoTrackInterface> track_; |
162 bool stopped_ = false; | 160 bool stopped_ = false; |
163 RtpReceiverObserverInterface* observer_ = nullptr; | 161 RtpReceiverObserverInterface* observer_ = nullptr; |
164 bool received_first_packet_ = false; | 162 bool received_first_packet_ = false; |
165 }; | 163 }; |
166 | 164 |
167 } // namespace webrtc | 165 } // namespace webrtc |
168 | 166 |
169 #endif // WEBRTC_PC_RTPRECEIVER_H_ | 167 #endif // WEBRTC_PC_RTPRECEIVER_H_ |
OLD | NEW |