Anders Carlsson | 7bca8ca | 2018-08-30 09:30:29 +0200 | [diff] [blame^] | 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 | #import "RTCPeerConnectionFactory.h" |
| 12 | |
| 13 | #include "rtc_base/scoped_ref_ptr.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 | /** |
| 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 | |
| 54 | NS_ASSUME_NONNULL_END |