OLD | NEW |
(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 #import "WebRTC/RTCPeerConnectionFactory.h" |
| 12 |
| 13 #include "webrtc/rtc_base/scoped_ref_ptr.h" |
| 14 |
| 15 namespace webrtc { |
| 16 |
| 17 class AudioEncoderFactory; |
| 18 class AudioDecoderFactory; |
| 19 |
| 20 } // namespace webrtc |
| 21 |
| 22 namespace cricket { |
| 23 |
| 24 class WebRtcVideoEncoderFactory; |
| 25 class WebRtcVideoDecoderFactory; |
| 26 |
| 27 } // namespace cricket |
| 28 |
| 29 NS_ASSUME_NONNULL_BEGIN |
| 30 |
| 31 /** |
| 32 * This class extension exposes methods that work directly with injectable C++ c
omponents. |
| 33 */ |
| 34 @interface RTCPeerConnectionFactory () |
| 35 |
| 36 /* Initialize object with injectable native audio/video encoder/decoder factorie
s */ |
| 37 - (instancetype)initWithNativeAudioEncoderFactory: |
| 38 (rtc::scoped_refptr<webrtc::AudioEncoderFactory>)audioEncode
rFactory |
| 39 nativeAudioDecoderFactory: |
| 40 (rtc::scoped_refptr<webrtc::AudioDecoderFactory>)aud
ioDecoderFactory |
| 41 nativeVideoEncoderFactory: |
| 42 (nullable cricket::WebRtcVideoEncoderFactory *)video
EncoderFactory |
| 43 nativeVideoDecoderFactory: |
| 44 (nullable cricket::WebRtcVideoDecoderFactory *)video
DecoderFactory |
| 45 NS_DESIGNATED_INITIALIZER; |
| 46 |
| 47 @end |
| 48 |
| 49 NS_ASSUME_NONNULL_END |
OLD | NEW |