| 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 1261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1272 } | 1272 } |
| 1273 | 1273 |
| 1274 MediaSessionDescriptionFactory::MediaSessionDescriptionFactory( | 1274 MediaSessionDescriptionFactory::MediaSessionDescriptionFactory( |
| 1275 ChannelManager* channel_manager, | 1275 ChannelManager* channel_manager, |
| 1276 const TransportDescriptionFactory* transport_desc_factory) | 1276 const TransportDescriptionFactory* transport_desc_factory) |
| 1277 : secure_(SEC_DISABLED), | 1277 : secure_(SEC_DISABLED), |
| 1278 add_legacy_(true), | 1278 add_legacy_(true), |
| 1279 transport_desc_factory_(transport_desc_factory) { | 1279 transport_desc_factory_(transport_desc_factory) { |
| 1280 channel_manager->GetSupportedAudioSendCodecs(&audio_send_codecs_); | 1280 channel_manager->GetSupportedAudioSendCodecs(&audio_send_codecs_); |
| 1281 channel_manager->GetSupportedAudioReceiveCodecs(&audio_recv_codecs_); | 1281 channel_manager->GetSupportedAudioReceiveCodecs(&audio_recv_codecs_); |
| 1282 channel_manager->GetSupportedAudioSendCodecs(&audio_send_codecs_); | |
| 1283 channel_manager->GetSupportedAudioRtpHeaderExtensions(&audio_rtp_extensions_); | 1282 channel_manager->GetSupportedAudioRtpHeaderExtensions(&audio_rtp_extensions_); |
| 1284 channel_manager->GetSupportedVideoCodecs(&video_codecs_); | 1283 channel_manager->GetSupportedVideoCodecs(&video_codecs_); |
| 1285 channel_manager->GetSupportedVideoRtpHeaderExtensions(&video_rtp_extensions_); | 1284 channel_manager->GetSupportedVideoRtpHeaderExtensions(&video_rtp_extensions_); |
| 1286 channel_manager->GetSupportedDataCodecs(&data_codecs_); | 1285 channel_manager->GetSupportedDataCodecs(&data_codecs_); |
| 1287 NegotiateCodecs(audio_recv_codecs_, audio_send_codecs_, | 1286 NegotiateCodecs(audio_recv_codecs_, audio_send_codecs_, |
| 1288 &audio_sendrecv_codecs_); | 1287 &audio_sendrecv_codecs_); |
| 1289 } | 1288 } |
| 1290 | 1289 |
| 1291 const AudioCodecs& MediaSessionDescriptionFactory::audio_sendrecv_codecs() | 1290 const AudioCodecs& MediaSessionDescriptionFactory::audio_sendrecv_codecs() |
| 1292 const { | 1291 const { |
| (...skipping 875 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2168 GetFirstMediaContentDescription(sdesc, MEDIA_TYPE_VIDEO)); | 2167 GetFirstMediaContentDescription(sdesc, MEDIA_TYPE_VIDEO)); |
| 2169 } | 2168 } |
| 2170 | 2169 |
| 2171 DataContentDescription* GetFirstDataContentDescription( | 2170 DataContentDescription* GetFirstDataContentDescription( |
| 2172 SessionDescription* sdesc) { | 2171 SessionDescription* sdesc) { |
| 2173 return static_cast<DataContentDescription*>( | 2172 return static_cast<DataContentDescription*>( |
| 2174 GetFirstMediaContentDescription(sdesc, MEDIA_TYPE_DATA)); | 2173 GetFirstMediaContentDescription(sdesc, MEDIA_TYPE_DATA)); |
| 2175 } | 2174 } |
| 2176 | 2175 |
| 2177 } // namespace cricket | 2176 } // namespace cricket |
| OLD | NEW |