OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2016 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2016 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 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
443 if (pc_->session()->voice_channel()) { | 443 if (pc_->session()->voice_channel()) { |
444 channel_name_pairs_->voice = rtc::Optional<ChannelNamePair>( | 444 channel_name_pairs_->voice = rtc::Optional<ChannelNamePair>( |
445 ChannelNamePair(pc_->session()->voice_channel()->content_name(), | 445 ChannelNamePair(pc_->session()->voice_channel()->content_name(), |
446 pc_->session()->voice_channel()->transport_name())); | 446 pc_->session()->voice_channel()->transport_name())); |
447 } | 447 } |
448 if (pc_->session()->video_channel()) { | 448 if (pc_->session()->video_channel()) { |
449 channel_name_pairs_->video = rtc::Optional<ChannelNamePair>( | 449 channel_name_pairs_->video = rtc::Optional<ChannelNamePair>( |
450 ChannelNamePair(pc_->session()->video_channel()->content_name(), | 450 ChannelNamePair(pc_->session()->video_channel()->content_name(), |
451 pc_->session()->video_channel()->transport_name())); | 451 pc_->session()->video_channel()->transport_name())); |
452 } | 452 } |
453 if (pc_->session()->data_channel()) { | 453 if (pc_->session()->rtp_data_channel()) { |
| 454 channel_name_pairs_->data = |
| 455 rtc::Optional<ChannelNamePair>(ChannelNamePair( |
| 456 pc_->session()->rtp_data_channel()->content_name(), |
| 457 pc_->session()->rtp_data_channel()->transport_name())); |
| 458 } |
| 459 if (!pc_->session()->sctp_content_name().empty()) { |
454 channel_name_pairs_->data = rtc::Optional<ChannelNamePair>( | 460 channel_name_pairs_->data = rtc::Optional<ChannelNamePair>( |
455 ChannelNamePair(pc_->session()->data_channel()->content_name(), | 461 ChannelNamePair(pc_->session()->sctp_content_name(), |
456 pc_->session()->data_channel()->transport_name())); | 462 pc_->session()->sctp_transport_name())); |
457 } | 463 } |
458 media_info_.reset(PrepareMediaInfo_s().release()); | 464 media_info_.reset(PrepareMediaInfo_s().release()); |
459 invoker_.AsyncInvoke<void>(RTC_FROM_HERE, network_thread_, | 465 invoker_.AsyncInvoke<void>(RTC_FROM_HERE, network_thread_, |
460 rtc::Bind(&RTCStatsCollector::ProducePartialResultsOnNetworkThread, | 466 rtc::Bind(&RTCStatsCollector::ProducePartialResultsOnNetworkThread, |
461 rtc::scoped_refptr<RTCStatsCollector>(this), timestamp_us)); | 467 rtc::scoped_refptr<RTCStatsCollector>(this), timestamp_us)); |
462 } | 468 } |
463 } | 469 } |
464 | 470 |
465 void RTCStatsCollector::ClearCachedStatsReport() { | 471 void RTCStatsCollector::ClearCachedStatsReport() { |
466 RTC_DCHECK(signaling_thread_->IsCurrent()); | 472 RTC_DCHECK(signaling_thread_->IsCurrent()); |
(...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
965 const std::string& type) { | 971 const std::string& type) { |
966 return CandidateTypeToRTCIceCandidateType(type); | 972 return CandidateTypeToRTCIceCandidateType(type); |
967 } | 973 } |
968 | 974 |
969 const char* DataStateToRTCDataChannelStateForTesting( | 975 const char* DataStateToRTCDataChannelStateForTesting( |
970 DataChannelInterface::DataState state) { | 976 DataChannelInterface::DataState state) { |
971 return DataStateToRTCDataChannelState(state); | 977 return DataStateToRTCDataChannelState(state); |
972 } | 978 } |
973 | 979 |
974 } // namespace webrtc | 980 } // namespace webrtc |
OLD | NEW |