OLD | NEW |
(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/sdk/android/src/jni/media_jni.h" |
| 12 |
| 13 #include "webrtc/api/audio_codecs/audio_decoder_factory.h" // nogncheck |
| 14 #include "webrtc/api/audio_codecs/audio_encoder_factory.h" // nogncheck |
| 15 #include "webrtc/call/callfactoryinterface.h" |
| 16 #include "webrtc/logging/rtc_event_log/rtc_event_log_factory_interface.h" |
| 17 #include "webrtc/media/engine/webrtcvideodecoderfactory.h" // nogncheck |
| 18 #include "webrtc/media/engine/webrtcvideoencoderfactory.h" // nogncheck |
| 19 |
| 20 namespace webrtc_jni { |
| 21 |
| 22 // This implementation is used for building WebRTC without audio and video |
| 23 // support. |
| 24 rtc::scoped_refptr<webrtc::PeerConnectionFactoryInterface> |
| 25 CreateNativePeerConnectionFactory( |
| 26 rtc::Thread* network_thread, |
| 27 rtc::Thread* worker_thread, |
| 28 rtc::Thread* signaling_thread, |
| 29 webrtc::AudioDeviceModule* default_adm, |
| 30 rtc::scoped_refptr<webrtc::AudioEncoderFactory> audio_encoder_factory, |
| 31 rtc::scoped_refptr<webrtc::AudioDecoderFactory> audio_decoder_factory, |
| 32 cricket::WebRtcVideoEncoderFactory* video_encoder_factory, |
| 33 cricket::WebRtcVideoDecoderFactory* video_decoder_factory) { |
| 34 return CreateModularPeerConnectionFactory( |
| 35 network_thread, worker_thread, signaling_thread, default_adm, |
| 36 audio_encoder_factory, audio_decoder_factory, video_encoder_factory, |
| 37 video_decoder_factory, nullptr /*audio_mixer*/, |
| 38 std::unique_ptr<cricket::MediaEngineInterface>(), |
| 39 std::unique_ptr<webrtc::CallFactoryInterface>(), |
| 40 std::unique_ptr<webrtc::RtcEventLogFactoryInterface>()); |
| 41 } |
| 42 |
| 43 } // namespace webrtc_jni |
OLD | NEW |