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/media/engine/webrtcmediaengine.h" | |
12 | |
13 namespace webrtc { | |
14 class AudioDecoderFactory; | |
15 class AudioDeviceModule; | |
16 class AudioMixer; | |
17 } | |
18 namespace cricket { | |
19 class WebRtcVideoDecoderFactory; | |
20 class WebRtcVideoEncoderFactory; | |
21 } | |
22 | |
23 namespace webrtc { | |
24 | |
pthatcher
2017/05/18 17:50:27
I think a good name for this file may be mediafact
Zhi Huang
2017/05/23 03:40:35
Done.
| |
25 std::unique_ptr<cricket::MediaEngineInterface> CreateMediaEngineImpl( | |
26 webrtc::AudioDeviceModule* adm, | |
27 const rtc::scoped_refptr<webrtc::AudioEncoderFactory>& | |
28 audio_encoder_factory, | |
29 const rtc::scoped_refptr<webrtc::AudioDecoderFactory>& | |
30 audio_decoder_factory, | |
31 cricket::WebRtcVideoEncoderFactory* video_encoder_factory, | |
32 cricket::WebRtcVideoDecoderFactory* video_decoder_factory, | |
33 rtc::scoped_refptr<webrtc::AudioMixer> audio_mixer) { | |
34 return std::unique_ptr<cricket::MediaEngineInterface>( | |
35 cricket::WebRtcMediaEngineFactory::Create( | |
36 adm, audio_encoder_factory, audio_decoder_factory, | |
37 video_encoder_factory, video_decoder_factory, audio_mixer)); | |
38 } | |
39 | |
40 } // namespace webrtc | |
OLD | NEW |