| 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 1257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1268 add_legacy_(true), | 1268 add_legacy_(true), |
| 1269 transport_desc_factory_(transport_desc_factory) { | 1269 transport_desc_factory_(transport_desc_factory) { |
| 1270 } | 1270 } |
| 1271 | 1271 |
| 1272 MediaSessionDescriptionFactory::MediaSessionDescriptionFactory( | 1272 MediaSessionDescriptionFactory::MediaSessionDescriptionFactory( |
| 1273 ChannelManager* channel_manager, | 1273 ChannelManager* channel_manager, |
| 1274 const TransportDescriptionFactory* transport_desc_factory) | 1274 const TransportDescriptionFactory* transport_desc_factory) |
| 1275 : secure_(SEC_DISABLED), | 1275 : secure_(SEC_DISABLED), |
| 1276 add_legacy_(true), | 1276 add_legacy_(true), |
| 1277 transport_desc_factory_(transport_desc_factory) { | 1277 transport_desc_factory_(transport_desc_factory) { |
| 1278 channel_manager->GetSupportedAudioCodecs(&audio_sendrecv_codecs_); | 1278 channel_manager->GetSupportedAudioSendCodecs(&audio_send_codecs_); |
| 1279 channel_manager->GetSupportedAudioReceiveCodecs(&audio_recv_codecs_); |
| 1280 channel_manager->GetSupportedAudioSendCodecs(&audio_send_codecs_); |
| 1279 channel_manager->GetSupportedAudioRtpHeaderExtensions(&audio_rtp_extensions_); | 1281 channel_manager->GetSupportedAudioRtpHeaderExtensions(&audio_rtp_extensions_); |
| 1280 channel_manager->GetSupportedVideoCodecs(&video_codecs_); | 1282 channel_manager->GetSupportedVideoCodecs(&video_codecs_); |
| 1281 channel_manager->GetSupportedVideoRtpHeaderExtensions(&video_rtp_extensions_); | 1283 channel_manager->GetSupportedVideoRtpHeaderExtensions(&video_rtp_extensions_); |
| 1282 channel_manager->GetSupportedDataCodecs(&data_codecs_); | 1284 channel_manager->GetSupportedDataCodecs(&data_codecs_); |
| 1283 audio_send_codecs_ = audio_sendrecv_codecs_; | 1285 NegotiateCodecs(audio_recv_codecs_, audio_send_codecs_, |
| 1284 audio_recv_codecs_ = audio_sendrecv_codecs_; | 1286 &audio_sendrecv_codecs_); |
| 1285 } | 1287 } |
| 1286 | 1288 |
| 1287 const AudioCodecs& MediaSessionDescriptionFactory::audio_codecs() const { | 1289 const AudioCodecs& MediaSessionDescriptionFactory::audio_sendrecv_codecs() |
| 1290 const { |
| 1288 return audio_sendrecv_codecs_; | 1291 return audio_sendrecv_codecs_; |
| 1289 } | 1292 } |
| 1290 | 1293 |
| 1291 const AudioCodecs& MediaSessionDescriptionFactory::audio_send_codecs() const { | 1294 const AudioCodecs& MediaSessionDescriptionFactory::audio_send_codecs() const { |
| 1292 return audio_send_codecs_; | 1295 return audio_send_codecs_; |
| 1293 } | 1296 } |
| 1294 | 1297 |
| 1295 const AudioCodecs& MediaSessionDescriptionFactory::audio_recv_codecs() const { | 1298 const AudioCodecs& MediaSessionDescriptionFactory::audio_recv_codecs() const { |
| 1296 return audio_recv_codecs_; | 1299 return audio_recv_codecs_; |
| 1297 } | 1300 } |
| (...skipping 793 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2091 GetFirstMediaContentDescription(sdesc, MEDIA_TYPE_VIDEO)); | 2094 GetFirstMediaContentDescription(sdesc, MEDIA_TYPE_VIDEO)); |
| 2092 } | 2095 } |
| 2093 | 2096 |
| 2094 const DataContentDescription* GetFirstDataContentDescription( | 2097 const DataContentDescription* GetFirstDataContentDescription( |
| 2095 const SessionDescription* sdesc) { | 2098 const SessionDescription* sdesc) { |
| 2096 return static_cast<const DataContentDescription*>( | 2099 return static_cast<const DataContentDescription*>( |
| 2097 GetFirstMediaContentDescription(sdesc, MEDIA_TYPE_DATA)); | 2100 GetFirstMediaContentDescription(sdesc, MEDIA_TYPE_DATA)); |
| 2098 } | 2101 } |
| 2099 | 2102 |
| 2100 } // namespace cricket | 2103 } // namespace cricket |
| OLD | NEW |