Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(288)

Side by Side Diff: webrtc/pc/peerconnection.cc

Issue 2854123003: Build WebRTC with data channel only. (Closed)
Patch Set: Rebase. Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2012 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 2317 matching lines...) Expand 10 before | Expand all | Expand 10 after
2328 } 2328 }
2329 2329
2330 void PeerConnection::CreateCall_w() { 2330 void PeerConnection::CreateCall_w() {
2331 RTC_DCHECK(!call_); 2331 RTC_DCHECK(!call_);
2332 2332
2333 const int kMinBandwidthBps = 30000; 2333 const int kMinBandwidthBps = 30000;
2334 const int kStartBandwidthBps = 300000; 2334 const int kStartBandwidthBps = 300000;
2335 const int kMaxBandwidthBps = 2000000; 2335 const int kMaxBandwidthBps = 2000000;
2336 2336
2337 webrtc::Call::Config call_config(event_log_.get()); 2337 webrtc::Call::Config call_config(event_log_.get());
2338 if (!factory_->channel_manager()->media_engine()) {
2339 return;
2340 }
2338 call_config.audio_state = 2341 call_config.audio_state =
2339 factory_->channel_manager() ->media_engine()->GetAudioState(); 2342 factory_->channel_manager()->media_engine()->GetAudioState();
2340 call_config.bitrate_config.min_bitrate_bps = kMinBandwidthBps; 2343 call_config.bitrate_config.min_bitrate_bps = kMinBandwidthBps;
2341 call_config.bitrate_config.start_bitrate_bps = kStartBandwidthBps; 2344 call_config.bitrate_config.start_bitrate_bps = kStartBandwidthBps;
2342 call_config.bitrate_config.max_bitrate_bps = kMaxBandwidthBps; 2345 call_config.bitrate_config.max_bitrate_bps = kMaxBandwidthBps;
2343 2346
2344 call_.reset(webrtc::Call::Create(call_config)); 2347 call_.reset(webrtc::Call::Create(call_config));
2345 } 2348 }
2346 2349
2347 } // namespace webrtc 2350 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698