1 /* 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 11 #import "RTCPeerConnectionFactory.h" 12 13 #include "api/scoped_refptr.h" 14 15 namespace webrtc { 16 17 class AudioDeviceModule; 18 class AudioEncoderFactory; 19 class AudioDecoderFactory; 20 class VideoEncoderFactory; 21 class VideoDecoderFactory; 22 class AudioProcessing; 23 24 } // namespace webrtc 25 26 NS_ASSUME_NONNULL_BEGIN 27 28 @interface RTCPeerConnectionFactoryBuilder : NSObject 29 30 + (RTCPeerConnectionFactoryBuilder *)builder; 31 32 - (RTC_OBJC_TYPE(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 48 NS_ASSUME_NONNULL_END 49