| 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 |
| 11 #include "webrtc/pc/rtpreceiver.h" | 11 #include "webrtc/pc/rtpreceiver.h" |
| 12 | 12 |
| 13 #include "webrtc/api/mediastreamtrackproxy.h" | 13 #include "webrtc/api/mediastreamtrackproxy.h" |
| 14 #include "webrtc/api/videosourceproxy.h" | 14 #include "webrtc/api/videosourceproxy.h" |
| 15 #include "webrtc/base/trace_event.h" | |
| 16 #include "webrtc/pc/audiotrack.h" | 15 #include "webrtc/pc/audiotrack.h" |
| 17 #include "webrtc/pc/videotrack.h" | 16 #include "webrtc/pc/videotrack.h" |
| 17 #include "webrtc/rtc_base/trace_event.h" |
| 18 | 18 |
| 19 namespace webrtc { | 19 namespace webrtc { |
| 20 | 20 |
| 21 AudioRtpReceiver::AudioRtpReceiver(const std::string& track_id, | 21 AudioRtpReceiver::AudioRtpReceiver(const std::string& track_id, |
| 22 uint32_t ssrc, | 22 uint32_t ssrc, |
| 23 cricket::VoiceChannel* channel) | 23 cricket::VoiceChannel* channel) |
| 24 : id_(track_id), | 24 : id_(track_id), |
| 25 ssrc_(ssrc), | 25 ssrc_(ssrc), |
| 26 channel_(channel), | 26 channel_(channel), |
| 27 track_(AudioTrackProxy::Create( | 27 track_(AudioTrackProxy::Create( |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 } | 233 } |
| 234 | 234 |
| 235 void VideoRtpReceiver::OnFirstPacketReceived(cricket::BaseChannel* channel) { | 235 void VideoRtpReceiver::OnFirstPacketReceived(cricket::BaseChannel* channel) { |
| 236 if (observer_) { | 236 if (observer_) { |
| 237 observer_->OnFirstPacketReceived(media_type()); | 237 observer_->OnFirstPacketReceived(media_type()); |
| 238 } | 238 } |
| 239 received_first_packet_ = true; | 239 received_first_packet_ = true; |
| 240 } | 240 } |
| 241 | 241 |
| 242 } // namespace webrtc | 242 } // namespace webrtc |
| OLD | NEW |