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 1256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1267 MediaSessionDescriptionFactory::MediaSessionDescriptionFactory( | 1267 MediaSessionDescriptionFactory::MediaSessionDescriptionFactory( |
1268 ChannelManager* channel_manager, | 1268 ChannelManager* channel_manager, |
1269 const TransportDescriptionFactory* transport_desc_factory) | 1269 const TransportDescriptionFactory* transport_desc_factory) |
1270 : secure_(SEC_DISABLED), | 1270 : secure_(SEC_DISABLED), |
1271 add_legacy_(true), | 1271 add_legacy_(true), |
1272 transport_desc_factory_(transport_desc_factory) { | 1272 transport_desc_factory_(transport_desc_factory) { |
1273 channel_manager->GetSupportedAudioSendCodecs(&audio_send_codecs_); | 1273 channel_manager->GetSupportedAudioSendCodecs(&audio_send_codecs_); |
1274 channel_manager->GetSupportedAudioReceiveCodecs(&audio_recv_codecs_); | 1274 channel_manager->GetSupportedAudioReceiveCodecs(&audio_recv_codecs_); |
1275 channel_manager->GetSupportedAudioSendCodecs(&audio_send_codecs_); | 1275 channel_manager->GetSupportedAudioSendCodecs(&audio_send_codecs_); |
1276 channel_manager->GetSupportedAudioRtpHeaderExtensions(&audio_rtp_extensions_); | 1276 channel_manager->GetSupportedAudioRtpHeaderExtensions(&audio_rtp_extensions_); |
1277 channel_manager->GetSupportedVideoCodecs(&video_codecs_); | 1277 video_codecs_ = channel_manager->GetSupportedVideoCodecs(); |
1278 channel_manager->GetSupportedVideoRtpHeaderExtensions(&video_rtp_extensions_); | 1278 channel_manager->GetSupportedVideoRtpHeaderExtensions(&video_rtp_extensions_); |
1279 channel_manager->GetSupportedDataCodecs(&data_codecs_); | 1279 channel_manager->GetSupportedDataCodecs(&data_codecs_); |
1280 NegotiateCodecs(audio_recv_codecs_, audio_send_codecs_, | 1280 NegotiateCodecs(audio_recv_codecs_, audio_send_codecs_, |
1281 &audio_sendrecv_codecs_); | 1281 &audio_sendrecv_codecs_); |
1282 } | 1282 } |
1283 | 1283 |
1284 const AudioCodecs& MediaSessionDescriptionFactory::audio_sendrecv_codecs() | 1284 const AudioCodecs& MediaSessionDescriptionFactory::audio_sendrecv_codecs() |
1285 const { | 1285 const { |
1286 return audio_sendrecv_codecs_; | 1286 return audio_sendrecv_codecs_; |
1287 } | 1287 } |
(...skipping 873 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2161 GetFirstMediaContentDescription(sdesc, MEDIA_TYPE_VIDEO)); | 2161 GetFirstMediaContentDescription(sdesc, MEDIA_TYPE_VIDEO)); |
2162 } | 2162 } |
2163 | 2163 |
2164 DataContentDescription* GetFirstDataContentDescription( | 2164 DataContentDescription* GetFirstDataContentDescription( |
2165 SessionDescription* sdesc) { | 2165 SessionDescription* sdesc) { |
2166 return static_cast<DataContentDescription*>( | 2166 return static_cast<DataContentDescription*>( |
2167 GetFirstMediaContentDescription(sdesc, MEDIA_TYPE_DATA)); | 2167 GetFirstMediaContentDescription(sdesc, MEDIA_TYPE_DATA)); |
2168 } | 2168 } |
2169 | 2169 |
2170 } // namespace cricket | 2170 } // namespace cricket |
OLD | NEW |