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 #include "webrtc/sdk/android/src/jni/media_jni.h" |
| 11 |
| 12 #include "webrtc/api/audio_codecs/audio_decoder_factory.h" |
| 13 #include "webrtc/api/audio_codecs/audio_encoder_factory.h" |
| 14 #include "webrtc/media/engine/webrtcvideodecoderfactory.h" |
| 15 #include "webrtc/media/engine/webrtcvideoencoderfactory.h" |
| 16 |
| 17 namespace webrtc_jni { |
| 18 |
| 19 rtc::scoped_refptr<webrtc::PeerConnectionFactoryInterface> |
| 20 CreateNativePeerConnectionFactory( |
| 21 rtc::Thread* network_thread, |
| 22 rtc::Thread* worker_thread, |
| 23 rtc::Thread* signaling_thread, |
| 24 webrtc::AudioDeviceModule* default_adm, |
| 25 rtc::scoped_refptr<webrtc::AudioEncoderFactory> audio_encoder_factory, |
| 26 rtc::scoped_refptr<webrtc::AudioDecoderFactory> audio_decoder_factory, |
| 27 cricket::WebRtcVideoEncoderFactory* video_encoder_factory, |
| 28 cricket::WebRtcVideoDecoderFactory* video_decoder_factory) { |
| 29 return webrtc::CreatePeerConnectionFactory( |
| 30 network_thread, worker_thread, signaling_thread, default_adm, |
| 31 audio_encoder_factory, audio_decoder_factory, video_encoder_factory, |
| 32 video_decoder_factory); |
| 33 } |
| 34 |
| 35 } // namespace webrtc_jni |
OLD | NEW |