OLD | NEW |
1 /* | 1 /* |
2 * libjingle | 2 * libjingle |
3 * Copyright 2004--2011 Google Inc. | 3 * Copyright 2004--2011 Google Inc. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 rtc::scoped_refptr<VideoSource> source( | 211 rtc::scoped_refptr<VideoSource> source( |
212 VideoSource::Create(channel_manager_.get(), capturer, constraints)); | 212 VideoSource::Create(channel_manager_.get(), capturer, constraints)); |
213 return VideoSourceProxy::Create(signaling_thread_, source); | 213 return VideoSourceProxy::Create(signaling_thread_, source); |
214 } | 214 } |
215 | 215 |
216 bool PeerConnectionFactory::StartAecDump(rtc::PlatformFile file) { | 216 bool PeerConnectionFactory::StartAecDump(rtc::PlatformFile file) { |
217 RTC_DCHECK(signaling_thread_->IsCurrent()); | 217 RTC_DCHECK(signaling_thread_->IsCurrent()); |
218 return channel_manager_->StartAecDump(file); | 218 return channel_manager_->StartAecDump(file); |
219 } | 219 } |
220 | 220 |
| 221 void PeerConnectionFactory::StopAecDump() { |
| 222 RTC_DCHECK(signaling_thread_->IsCurrent()); |
| 223 channel_manager_->StopAecDump(); |
| 224 } |
| 225 |
221 bool PeerConnectionFactory::StartRtcEventLog(rtc::PlatformFile file) { | 226 bool PeerConnectionFactory::StartRtcEventLog(rtc::PlatformFile file) { |
222 RTC_DCHECK(signaling_thread_->IsCurrent()); | 227 RTC_DCHECK(signaling_thread_->IsCurrent()); |
223 return channel_manager_->StartRtcEventLog(file); | 228 return channel_manager_->StartRtcEventLog(file); |
224 } | 229 } |
225 | 230 |
226 void PeerConnectionFactory::StopRtcEventLog() { | 231 void PeerConnectionFactory::StopRtcEventLog() { |
227 RTC_DCHECK(signaling_thread_->IsCurrent()); | 232 RTC_DCHECK(signaling_thread_->IsCurrent()); |
228 channel_manager_->StopRtcEventLog(); | 233 channel_manager_->StopRtcEventLog(); |
229 } | 234 } |
230 | 235 |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
308 } | 313 } |
309 | 314 |
310 cricket::MediaEngineInterface* PeerConnectionFactory::CreateMediaEngine_w() { | 315 cricket::MediaEngineInterface* PeerConnectionFactory::CreateMediaEngine_w() { |
311 ASSERT(worker_thread_ == rtc::Thread::Current()); | 316 ASSERT(worker_thread_ == rtc::Thread::Current()); |
312 return cricket::WebRtcMediaEngineFactory::Create( | 317 return cricket::WebRtcMediaEngineFactory::Create( |
313 default_adm_.get(), video_encoder_factory_.get(), | 318 default_adm_.get(), video_encoder_factory_.get(), |
314 video_decoder_factory_.get()); | 319 video_decoder_factory_.get()); |
315 } | 320 } |
316 | 321 |
317 } // namespace webrtc | 322 } // namespace webrtc |
OLD | NEW |