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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 rtc::scoped_refptr<VideoSourceInterface> | 225 rtc::scoped_refptr<VideoSourceInterface> |
226 PeerConnectionFactory::CreateVideoSource( | 226 PeerConnectionFactory::CreateVideoSource( |
227 cricket::VideoCapturer* capturer, | 227 cricket::VideoCapturer* capturer, |
228 const MediaConstraintsInterface* constraints) { | 228 const MediaConstraintsInterface* constraints) { |
229 RTC_DCHECK(signaling_thread_->IsCurrent()); | 229 RTC_DCHECK(signaling_thread_->IsCurrent()); |
230 rtc::scoped_refptr<VideoSource> source(VideoSource::Create( | 230 rtc::scoped_refptr<VideoSource> source(VideoSource::Create( |
231 channel_manager_.get(), capturer, constraints, false)); | 231 channel_manager_.get(), capturer, constraints, false)); |
232 return VideoSourceProxy::Create(signaling_thread_, source); | 232 return VideoSourceProxy::Create(signaling_thread_, source); |
233 } | 233 } |
234 | 234 |
235 bool PeerConnectionFactory::StartAecDump(rtc::PlatformFile file, | 235 bool PeerConnectionFactory::StartAecDump(rtc::PlatformFile file) { |
236 int64_t max_size_bytes) { | |
237 RTC_DCHECK(signaling_thread_->IsCurrent()); | 236 RTC_DCHECK(signaling_thread_->IsCurrent()); |
238 return channel_manager_->StartAecDump(file, max_size_bytes); | 237 return channel_manager_->StartAecDump(file); |
239 } | 238 } |
240 | 239 |
241 void PeerConnectionFactory::StopAecDump() { | 240 void PeerConnectionFactory::StopAecDump() { |
242 RTC_DCHECK(signaling_thread_->IsCurrent()); | 241 RTC_DCHECK(signaling_thread_->IsCurrent()); |
243 channel_manager_->StopAecDump(); | 242 channel_manager_->StopAecDump(); |
244 } | 243 } |
245 | 244 |
246 bool PeerConnectionFactory::StartRtcEventLog(rtc::PlatformFile file) { | 245 bool PeerConnectionFactory::StartRtcEventLog(rtc::PlatformFile file) { |
247 RTC_DCHECK(signaling_thread_->IsCurrent()); | 246 RTC_DCHECK(signaling_thread_->IsCurrent()); |
248 return channel_manager_->StartRtcEventLog(file); | 247 return channel_manager_->StartRtcEventLog(file); |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
361 } | 360 } |
362 | 361 |
363 cricket::MediaEngineInterface* PeerConnectionFactory::CreateMediaEngine_w() { | 362 cricket::MediaEngineInterface* PeerConnectionFactory::CreateMediaEngine_w() { |
364 ASSERT(worker_thread_ == rtc::Thread::Current()); | 363 ASSERT(worker_thread_ == rtc::Thread::Current()); |
365 return cricket::WebRtcMediaEngineFactory::Create( | 364 return cricket::WebRtcMediaEngineFactory::Create( |
366 default_adm_.get(), video_encoder_factory_.get(), | 365 default_adm_.get(), video_encoder_factory_.get(), |
367 video_decoder_factory_.get()); | 366 video_decoder_factory_.get()); |
368 } | 367 } |
369 | 368 |
370 } // namespace webrtc | 369 } // namespace webrtc |
OLD | NEW |