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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 received_first_packet_ = true; | 140 received_first_packet_ = true; |
141 } | 141 } |
142 | 142 |
143 VideoRtpReceiver::VideoRtpReceiver(const std::string& track_id, | 143 VideoRtpReceiver::VideoRtpReceiver(const std::string& track_id, |
144 rtc::Thread* worker_thread, | 144 rtc::Thread* worker_thread, |
145 uint32_t ssrc, | 145 uint32_t ssrc, |
146 cricket::VideoChannel* channel) | 146 cricket::VideoChannel* channel) |
147 : id_(track_id), | 147 : id_(track_id), |
148 ssrc_(ssrc), | 148 ssrc_(ssrc), |
149 channel_(channel), | 149 channel_(channel), |
150 source_(new RefCountedObject<VideoTrackSource>(&broadcaster_, | 150 source_(new rtc::RefCountedObject<VideoTrackSource>(&broadcaster_, |
151 true /* remote */)), | 151 true /* remote */)), |
152 track_(VideoTrackProxy::Create( | 152 track_(VideoTrackProxy::Create( |
153 rtc::Thread::Current(), | 153 rtc::Thread::Current(), |
154 worker_thread, | 154 worker_thread, |
155 VideoTrack::Create( | 155 VideoTrack::Create( |
156 track_id, | 156 track_id, |
157 VideoTrackSourceProxy::Create(rtc::Thread::Current(), | 157 VideoTrackSourceProxy::Create(rtc::Thread::Current(), |
158 worker_thread, | 158 worker_thread, |
159 source_), | 159 source_), |
160 worker_thread))) { | 160 worker_thread))) { |
161 source_->SetState(MediaSourceInterface::kLive); | 161 source_->SetState(MediaSourceInterface::kLive); |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 } | 235 } |
236 | 236 |
237 void VideoRtpReceiver::OnFirstPacketReceived(cricket::BaseChannel* channel) { | 237 void VideoRtpReceiver::OnFirstPacketReceived(cricket::BaseChannel* channel) { |
238 if (observer_) { | 238 if (observer_) { |
239 observer_->OnFirstPacketReceived(media_type()); | 239 observer_->OnFirstPacketReceived(media_type()); |
240 } | 240 } |
241 received_first_packet_ = true; | 241 received_first_packet_ = true; |
242 } | 242 } |
243 | 243 |
244 } // namespace webrtc | 244 } // namespace webrtc |
OLD | NEW |