| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2017 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2017 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 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 cricket::CA_ANSWER, nullptr)) { | 245 cricket::CA_ANSWER, nullptr)) { |
| 246 break; | 246 break; |
| 247 } | 247 } |
| 248 } | 248 } |
| 249 return RTCError::OK(); | 249 return RTCError::OK(); |
| 250 } while (false); | 250 } while (false); |
| 251 LOG_AND_RETURN_ERROR(RTCErrorType::INTERNAL_ERROR, | 251 LOG_AND_RETURN_ERROR(RTCErrorType::INTERNAL_ERROR, |
| 252 "Failed to apply new RTCP parameters."); | 252 "Failed to apply new RTCP parameters."); |
| 253 } | 253 } |
| 254 | 254 |
| 255 RTCError RtpTransportControllerAdapter::SetRtpTransportParameters( |
| 256 const RtpTransportParameters& parameters) { |
| 257 if (!call_->SetRtpKeepAliveConfig(parameters.keepalive)) { |
| 258 LOG_AND_RETURN_ERROR(RTCErrorType::INTERNAL_ERROR, |
| 259 "Failed to apply new RTP transport parameters."); |
| 260 } |
| 261 return RTCError::OK(); |
| 262 } |
| 263 |
| 255 RTCError RtpTransportControllerAdapter::ValidateAndApplyAudioSenderParameters( | 264 RTCError RtpTransportControllerAdapter::ValidateAndApplyAudioSenderParameters( |
| 256 const RtpParameters& parameters, | 265 const RtpParameters& parameters, |
| 257 uint32_t* primary_ssrc) { | 266 uint32_t* primary_ssrc) { |
| 258 RTC_DCHECK(voice_channel_); | 267 RTC_DCHECK(voice_channel_); |
| 259 RTC_DCHECK(have_audio_sender_); | 268 RTC_DCHECK(have_audio_sender_); |
| 260 | 269 |
| 261 auto codecs_result = ToCricketCodecs<cricket::AudioCodec>(parameters.codecs); | 270 auto codecs_result = ToCricketCodecs<cricket::AudioCodec>(parameters.codecs); |
| 262 if (!codecs_result.ok()) { | 271 if (!codecs_result.ok()) { |
| 263 return codecs_result.MoveError(); | 272 return codecs_result.MoveError(); |
| 264 } | 273 } |
| (...skipping 709 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 974 local_description->set_cryptos(cryptos); | 983 local_description->set_cryptos(cryptos); |
| 975 | 984 |
| 976 cryptos.clear(); | 985 cryptos.clear(); |
| 977 cryptos.push_back(*(rtp_transport->GetInternal()->send_key())); | 986 cryptos.push_back(*(rtp_transport->GetInternal()->send_key())); |
| 978 remote_description->set_cryptos(cryptos); | 987 remote_description->set_cryptos(cryptos); |
| 979 } | 988 } |
| 980 return RTCError::OK(); | 989 return RTCError::OK(); |
| 981 } | 990 } |
| 982 | 991 |
| 983 } // namespace webrtc | 992 } // namespace webrtc |
| OLD | NEW |