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 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
456 if (pc_->session()->voice_channel()) { | 456 if (pc_->session()->voice_channel()) { |
457 channel_name_pairs_->voice = rtc::Optional<ChannelNamePair>( | 457 channel_name_pairs_->voice = rtc::Optional<ChannelNamePair>( |
458 ChannelNamePair(pc_->session()->voice_channel()->content_name(), | 458 ChannelNamePair(pc_->session()->voice_channel()->content_name(), |
459 pc_->session()->voice_channel()->transport_name())); | 459 pc_->session()->voice_channel()->transport_name())); |
460 } | 460 } |
461 if (pc_->session()->video_channel()) { | 461 if (pc_->session()->video_channel()) { |
462 channel_name_pairs_->video = rtc::Optional<ChannelNamePair>( | 462 channel_name_pairs_->video = rtc::Optional<ChannelNamePair>( |
463 ChannelNamePair(pc_->session()->video_channel()->content_name(), | 463 ChannelNamePair(pc_->session()->video_channel()->content_name(), |
464 pc_->session()->video_channel()->transport_name())); | 464 pc_->session()->video_channel()->transport_name())); |
465 } | 465 } |
466 if (pc_->session()->data_channel()) { | 466 if (pc_->session()->rtp_data_channel()) { |
| 467 channel_name_pairs_->data = |
| 468 rtc::Optional<ChannelNamePair>(ChannelNamePair( |
| 469 pc_->session()->rtp_data_channel()->content_name(), |
| 470 pc_->session()->rtp_data_channel()->transport_name())); |
| 471 } |
| 472 if (pc_->session()->sctp_content_name()) { |
467 channel_name_pairs_->data = rtc::Optional<ChannelNamePair>( | 473 channel_name_pairs_->data = rtc::Optional<ChannelNamePair>( |
468 ChannelNamePair(pc_->session()->data_channel()->content_name(), | 474 ChannelNamePair(*pc_->session()->sctp_content_name(), |
469 pc_->session()->data_channel()->transport_name())); | 475 *pc_->session()->sctp_transport_name())); |
470 } | 476 } |
471 media_info_.reset(PrepareMediaInfo_s().release()); | 477 media_info_.reset(PrepareMediaInfo_s().release()); |
472 | 478 |
473 invoker_.AsyncInvoke<void>(RTC_FROM_HERE, network_thread_, | 479 invoker_.AsyncInvoke<void>(RTC_FROM_HERE, network_thread_, |
474 rtc::Bind(&RTCStatsCollector::ProducePartialResultsOnNetworkThread, | 480 rtc::Bind(&RTCStatsCollector::ProducePartialResultsOnNetworkThread, |
475 rtc::scoped_refptr<RTCStatsCollector>(this), timestamp_us)); | 481 rtc::scoped_refptr<RTCStatsCollector>(this), timestamp_us)); |
476 ProducePartialResultsOnSignalingThread(timestamp_us); | 482 ProducePartialResultsOnSignalingThread(timestamp_us); |
477 } | 483 } |
478 } | 484 } |
479 | 485 |
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
971 const std::string& type) { | 977 const std::string& type) { |
972 return CandidateTypeToRTCIceCandidateType(type); | 978 return CandidateTypeToRTCIceCandidateType(type); |
973 } | 979 } |
974 | 980 |
975 const char* DataStateToRTCDataChannelStateForTesting( | 981 const char* DataStateToRTCDataChannelStateForTesting( |
976 DataChannelInterface::DataState state) { | 982 DataChannelInterface::DataState state) { |
977 return DataStateToRTCDataChannelState(state); | 983 return DataStateToRTCDataChannelState(state); |
978 } | 984 } |
979 | 985 |
980 } // namespace webrtc | 986 } // namespace webrtc |
OLD | NEW |