blob: 189eb736b232c6c03443ec48653ecb36c48bade5 [file] [log] [blame]
Jiawei Ouae810c12018-06-20 16:18:59 -07001/*
2 * Copyright 2018 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
Anders Carlsson7bca8ca2018-08-30 09:30:29 +020011#import "RTCPeerConnectionFactory.h"
Jiawei Ouae810c12018-06-20 16:18:59 -070012
Mirko Bonadeid9708072019-01-25 20:26:48 +010013#include "api/scoped_refptr.h"
Jiawei Ouae810c12018-06-20 16:18:59 -070014
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@interface RTCPeerConnectionFactoryBuilder : NSObject
29
30+ (RTCPeerConnectionFactoryBuilder *)builder;
31
32- (RTCPeerConnectionFactory *)createPeerConnectionFactory;
33
34- (void)setVideoEncoderFactory:(std::unique_ptr<webrtc::VideoEncoderFactory>)videoEncoderFactory;
35
36- (void)setVideoDecoderFactory:(std::unique_ptr<webrtc::VideoDecoderFactory>)videoDecoderFactory;
37
38- (void)setAudioEncoderFactory:(rtc::scoped_refptr<webrtc::AudioEncoderFactory>)audioEncoderFactory;
39
40- (void)setAudioDecoderFactory:(rtc::scoped_refptr<webrtc::AudioDecoderFactory>)audioDecoderFactory;
41
42- (void)setAudioDeviceModule:(rtc::scoped_refptr<webrtc::AudioDeviceModule>)audioDeviceModule;
43
44- (void)setAudioProcessingModule:(rtc::scoped_refptr<webrtc::AudioProcessing>)audioProcessingModule;
45
46@end
47
48NS_ASSUME_NONNULL_END