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

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

Issue 2854123003: Build WebRTC with data channel only. (Closed)
Patch Set: Add a Java level test. Created 3 years, 7 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/call/call.h"
12 #include "webrtc/logging/rtc_event_log/rtc_event_log.h"
13 #include "webrtc/media/engine/webrtcmediaengine.h"
14
15 namespace webrtc {
16 class AudioDecoderFactory;
17 class AudioDeviceModule;
18 class AudioMixer;
19 }
20 namespace cricket {
21 class WebRtcVideoDecoderFactory;
22 class WebRtcVideoEncoderFactory;
23 }
24
25 namespace webrtc {
26
27 std::unique_ptr<cricket::MediaEngineInterface> CreateMediaEngine(
28 webrtc::AudioDeviceModule* adm,
29 const rtc::scoped_refptr<webrtc::AudioEncoderFactory>&
30 audio_encoder_factory,
31 const rtc::scoped_refptr<webrtc::AudioDecoderFactory>&
32 audio_decoder_factory,
33 cricket::WebRtcVideoEncoderFactory* video_encoder_factory,
34 cricket::WebRtcVideoDecoderFactory* video_decoder_factory,
35 rtc::scoped_refptr<webrtc::AudioMixer> audio_mixer) {
36 return std::unique_ptr<cricket::MediaEngineInterface>(
37 cricket::WebRtcMediaEngineFactory::Create(
38 adm, audio_encoder_factory, audio_decoder_factory,
39 video_encoder_factory, video_decoder_factory, audio_mixer));
40 }
41
42 std::unique_ptr<RtcEventLog> CreateRtcEventLog() {
43 return std::unique_ptr<RtcEventLog>(RtcEventLog::Create());
44 }
45
46 Call* CreateCall(const Call::Config& config) {
47 return webrtc::Call::Create(config);
48 }
Taylor Brandstetter 2017/05/30 17:30:53 I think a level of indirection can be removed here
Zhi Huang 2017/05/31 00:03:29 Done.
49
50 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698