| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2004 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2004 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 params->extensions = desc->rtp_header_extensions(); | 132 params->extensions = desc->rtp_header_extensions(); |
| 133 } | 133 } |
| 134 params->rtcp.reduced_size = desc->rtcp_reduced_size(); | 134 params->rtcp.reduced_size = desc->rtcp_reduced_size(); |
| 135 } | 135 } |
| 136 | 136 |
| 137 template <class Codec> | 137 template <class Codec> |
| 138 void RtpSendParametersFromMediaDescription( | 138 void RtpSendParametersFromMediaDescription( |
| 139 const MediaContentDescriptionImpl<Codec>* desc, | 139 const MediaContentDescriptionImpl<Codec>* desc, |
| 140 RtpSendParameters<Codec>* send_params) { | 140 RtpSendParameters<Codec>* send_params) { |
| 141 RtpParametersFromMediaDescription(desc, send_params); | 141 RtpParametersFromMediaDescription(desc, send_params); |
| 142 send_params->max_bandwidth_bps = desc->bandwidth(); | 142 send_params->max_bitrate_bps = desc->bandwidth(); |
| 143 } | 143 } |
| 144 | 144 |
| 145 BaseChannel::BaseChannel(rtc::Thread* thread, | 145 BaseChannel::BaseChannel(rtc::Thread* thread, |
| 146 MediaChannel* media_channel, | 146 MediaChannel* media_channel, |
| 147 TransportController* transport_controller, | 147 TransportController* transport_controller, |
| 148 const std::string& content_name, | 148 const std::string& content_name, |
| 149 bool rtcp) | 149 bool rtcp) |
| 150 : worker_thread_(thread), | 150 : worker_thread_(thread), |
| 151 transport_controller_(transport_controller), | 151 transport_controller_(transport_controller), |
| 152 media_channel_(media_channel), | 152 media_channel_(media_channel), |
| (...skipping 2050 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2203 return (data_channel_type_ == DCT_RTP) && BaseChannel::ShouldSetupDtlsSrtp(); | 2203 return (data_channel_type_ == DCT_RTP) && BaseChannel::ShouldSetupDtlsSrtp(); |
| 2204 } | 2204 } |
| 2205 | 2205 |
| 2206 void DataChannel::OnStreamClosedRemotely(uint32_t sid) { | 2206 void DataChannel::OnStreamClosedRemotely(uint32_t sid) { |
| 2207 rtc::TypedMessageData<uint32_t>* message = | 2207 rtc::TypedMessageData<uint32_t>* message = |
| 2208 new rtc::TypedMessageData<uint32_t>(sid); | 2208 new rtc::TypedMessageData<uint32_t>(sid); |
| 2209 signaling_thread()->Post(this, MSG_STREAMCLOSEDREMOTELY, message); | 2209 signaling_thread()->Post(this, MSG_STREAMCLOSEDREMOTELY, message); |
| 2210 } | 2210 } |
| 2211 | 2211 |
| 2212 } // namespace cricket | 2212 } // namespace cricket |
| OLD | NEW |