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

Side by Side Diff: webrtc/sdk/android/src/jni/null_audio_jni.cc

Issue 2939203002: Support building WebRTC without audio and video for Android (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
(Empty)
1 /*
2 * Copyright 2017 The WebRTC project authors. All Rights Reserved.
3 *
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
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
11 #include "webrtc/api/peerconnectioninterface.h"
12 #include "webrtc/base/bind.h"
13 #include "webrtc/base/scoped_ref_ptr.h"
14 #include "webrtc/base/thread.h"
15 #include "webrtc/call/callfactoryinterface.h"
16 // Adding 'nogncheck' to disable the gn include headers check.
17 // We don't want this null implementation target depend on audio and video
18 // related targets
19 #include "webrtc/media/engine/webrtcmediaengine.h" // nogncheck
20
21 namespace webrtc {
22
23 // This implementation is used for building WebRTC without audio and video
24 // support.
Taylor Brandstetter 2017/06/16 22:19:08 It's odd that this has an implementation of a Crea
Zhi Huang 2017/06/17 01:46:43 Instead of moving entire nativeCreatePeerConnectio
Taylor Brandstetter 2017/06/17 04:41:40 That makes sense; it's still the same general idea
25 rtc::scoped_refptr<PeerConnectionFactoryInterface> CreatePeerConnectionFactory(
26 rtc::Thread* network_thread,
27 rtc::Thread* worker_thread,
28 rtc::Thread* signaling_thread,
29 AudioDeviceModule* default_adm,
30 cricket::WebRtcVideoEncoderFactory* encoder_factory,
31 cricket::WebRtcVideoDecoderFactory* decoder_factory) {
32 return CreateModularPeerConnectionFactory(
33 network_thread, worker_thread, signaling_thread, default_adm,
34 nullptr /*audio_encoder_factory*/, nullptr /*audio_decoder_factory*/,
35 encoder_factory, decoder_factory, nullptr /*audio_mixer*/,
36 std::unique_ptr<cricket::MediaEngineInterface>(),
37 std::unique_ptr<CallFactoryInterface>(),
38 std::unique_ptr<RtcEventLogFactoryInterface>());
39 }
40
41 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698