blob: 60aa08f7ca3a023faa03c3329fbceac1e71a4e2a [file] [log] [blame]
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001/*
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#import "RTCPeerConnectionFactory.h"
12
13#include "rtc_base/scoped_ref_ptr.h"
14
15namespace webrtc {
16
17class AudioDeviceModule;
18class AudioEncoderFactory;
19class AudioDecoderFactory;
20class VideoEncoderFactory;
21class VideoDecoderFactory;
22class AudioProcessing;
23
24} // namespace webrtc
25
26NS_ASSUME_NONNULL_BEGIN
27
28/**
29 * This class extension exposes methods that work directly with injectable C++ components.
30 */
31@interface RTCPeerConnectionFactory ()
32
33- (instancetype)initNative NS_DESIGNATED_INITIALIZER;
34
35/* Initializer used when WebRTC is compiled with no media support */
36- (instancetype)initWithNoMedia;
37
38/* Initialize object with injectable native audio/video encoder/decoder factories */
39- (instancetype)initWithNativeAudioEncoderFactory:
40 (rtc::scoped_refptr<webrtc::AudioEncoderFactory>)audioEncoderFactory
41 nativeAudioDecoderFactory:
42 (rtc::scoped_refptr<webrtc::AudioDecoderFactory>)audioDecoderFactory
43 nativeVideoEncoderFactory:
44 (std::unique_ptr<webrtc::VideoEncoderFactory>)videoEncoderFactory
45 nativeVideoDecoderFactory:
46 (std::unique_ptr<webrtc::VideoDecoderFactory>)videoDecoderFactory
47 audioDeviceModule:
48 (nullable webrtc::AudioDeviceModule *)audioDeviceModule
49 audioProcessingModule:
50 (rtc::scoped_refptr<webrtc::AudioProcessing>)audioProcessingModule;
51
52@end
53
54NS_ASSUME_NONNULL_END