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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 params->extensions = desc->rtp_header_extensions(); | 131 params->extensions = desc->rtp_header_extensions(); |
132 } | 132 } |
133 params->rtcp.reduced_size = desc->rtcp_reduced_size(); | 133 params->rtcp.reduced_size = desc->rtcp_reduced_size(); |
134 } | 134 } |
135 | 135 |
136 template <class Codec> | 136 template <class Codec> |
137 void RtpSendParametersFromMediaDescription( | 137 void RtpSendParametersFromMediaDescription( |
138 const MediaContentDescriptionImpl<Codec>* desc, | 138 const MediaContentDescriptionImpl<Codec>* desc, |
139 RtpSendParameters<Codec>* send_params) { | 139 RtpSendParameters<Codec>* send_params) { |
140 RtpParametersFromMediaDescription(desc, send_params); | 140 RtpParametersFromMediaDescription(desc, send_params); |
141 send_params->max_bandwidth_bps = desc->bandwidth(); | 141 send_params->max_bitrate_bps = desc->bandwidth(); |
142 } | 142 } |
143 | 143 |
144 BaseChannel::BaseChannel(rtc::Thread* thread, | 144 BaseChannel::BaseChannel(rtc::Thread* thread, |
145 MediaChannel* media_channel, | 145 MediaChannel* media_channel, |
146 TransportController* transport_controller, | 146 TransportController* transport_controller, |
147 const std::string& content_name, | 147 const std::string& content_name, |
148 bool rtcp) | 148 bool rtcp) |
149 : worker_thread_(thread), | 149 : worker_thread_(thread), |
150 transport_controller_(transport_controller), | 150 transport_controller_(transport_controller), |
151 media_channel_(media_channel), | 151 media_channel_(media_channel), |
(...skipping 2034 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2186 return (data_channel_type_ == DCT_RTP) && BaseChannel::ShouldSetupDtlsSrtp(); | 2186 return (data_channel_type_ == DCT_RTP) && BaseChannel::ShouldSetupDtlsSrtp(); |
2187 } | 2187 } |
2188 | 2188 |
2189 void DataChannel::OnStreamClosedRemotely(uint32_t sid) { | 2189 void DataChannel::OnStreamClosedRemotely(uint32_t sid) { |
2190 rtc::TypedMessageData<uint32_t>* message = | 2190 rtc::TypedMessageData<uint32_t>* message = |
2191 new rtc::TypedMessageData<uint32_t>(sid); | 2191 new rtc::TypedMessageData<uint32_t>(sid); |
2192 signaling_thread()->Post(this, MSG_STREAMCLOSEDREMOTELY, message); | 2192 signaling_thread()->Post(this, MSG_STREAMCLOSEDREMOTELY, message); |
2193 } | 2193 } |
2194 | 2194 |
2195 } // namespace cricket | 2195 } // namespace cricket |
OLD | NEW |