Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2012 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 1335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1346 | 1346 |
| 1347 void PeerConnection::Close() { | 1347 void PeerConnection::Close() { |
| 1348 TRACE_EVENT0("webrtc", "PeerConnection::Close"); | 1348 TRACE_EVENT0("webrtc", "PeerConnection::Close"); |
| 1349 // Update stats here so that we have the most recent stats for tracks and | 1349 // Update stats here so that we have the most recent stats for tracks and |
| 1350 // streams before the channels are closed. | 1350 // streams before the channels are closed. |
| 1351 stats_->UpdateStats(kStatsOutputLevelStandard); | 1351 stats_->UpdateStats(kStatsOutputLevelStandard); |
| 1352 | 1352 |
| 1353 session_->Close(); | 1353 session_->Close(); |
| 1354 } | 1354 } |
| 1355 | 1355 |
| 1356 std::vector<uint32_t> PeerConnection::GetRemoteAudioTrackSsrcs() { | |
|
aleloi
2016/12/05 14:03:08
See comment at declaration.
| |
| 1357 std::vector<uint32_t> ssrcs; | |
| 1358 TrackInfos* infos = GetRemoteTracks(cricket::MEDIA_TYPE_AUDIO); | |
| 1359 for (const auto& info : *infos) | |
| 1360 ssrcs.push_back(info.ssrc); | |
| 1361 | |
| 1362 return ssrcs; | |
| 1363 } | |
| 1364 | |
| 1356 void PeerConnection::OnSessionStateChange(WebRtcSession* /*session*/, | 1365 void PeerConnection::OnSessionStateChange(WebRtcSession* /*session*/, |
| 1357 WebRtcSession::State state) { | 1366 WebRtcSession::State state) { |
| 1358 switch (state) { | 1367 switch (state) { |
| 1359 case WebRtcSession::STATE_INIT: | 1368 case WebRtcSession::STATE_INIT: |
| 1360 ChangeSignalingState(PeerConnectionInterface::kStable); | 1369 ChangeSignalingState(PeerConnectionInterface::kStable); |
| 1361 break; | 1370 break; |
| 1362 case WebRtcSession::STATE_SENTOFFER: | 1371 case WebRtcSession::STATE_SENTOFFER: |
| 1363 ChangeSignalingState(PeerConnectionInterface::kHaveLocalOffer); | 1372 ChangeSignalingState(PeerConnectionInterface::kHaveLocalOffer); |
| 1364 break; | 1373 break; |
| 1365 case WebRtcSession::STATE_SENTPRANSWER: | 1374 case WebRtcSession::STATE_SENTPRANSWER: |
| (...skipping 1001 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2367 | 2376 |
| 2368 bool PeerConnection::StartRtcEventLog_w(rtc::PlatformFile file, | 2377 bool PeerConnection::StartRtcEventLog_w(rtc::PlatformFile file, |
| 2369 int64_t max_size_bytes) { | 2378 int64_t max_size_bytes) { |
| 2370 return event_log_->StartLogging(file, max_size_bytes); | 2379 return event_log_->StartLogging(file, max_size_bytes); |
| 2371 } | 2380 } |
| 2372 | 2381 |
| 2373 void PeerConnection::StopRtcEventLog_w() { | 2382 void PeerConnection::StopRtcEventLog_w() { |
| 2374 event_log_->StopLogging(); | 2383 event_log_->StopLogging(); |
| 2375 } | 2384 } |
| 2376 } // namespace webrtc | 2385 } // namespace webrtc |
| OLD | NEW |