| OLD | NEW |
| (Empty) |
| 1 /* | |
| 2 * Copyright 2015 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 <Foundation/Foundation.h> | |
| 12 | |
| 13 #import "webrtc/base/objc/RTCMacros.h" | |
| 14 | |
| 15 NS_ASSUME_NONNULL_BEGIN | |
| 16 | |
| 17 @class RTCAVFoundationVideoSource; | |
| 18 @class RTCAudioTrack; | |
| 19 @class RTCConfiguration; | |
| 20 @class RTCMediaConstraints; | |
| 21 @class RTCMediaStream; | |
| 22 @class RTCPeerConnection; | |
| 23 @class RTCVideoSource; | |
| 24 @class RTCVideoTrack; | |
| 25 @protocol RTCPeerConnectionDelegate; | |
| 26 | |
| 27 RTC_EXPORT | |
| 28 @interface RTCPeerConnectionFactory : NSObject | |
| 29 | |
| 30 - (instancetype)init NS_DESIGNATED_INITIALIZER; | |
| 31 | |
| 32 /** Initialize an RTCAVFoundationVideoSource with constraints. */ | |
| 33 - (RTCAVFoundationVideoSource *)avFoundationVideoSourceWithConstraints: | |
| 34 (nullable RTCMediaConstraints *)constraints; | |
| 35 | |
| 36 /** Initialize an RTCAudioTrack with an id. */ | |
| 37 - (RTCAudioTrack *)audioTrackWithTrackId:(NSString *)trackId; | |
| 38 | |
| 39 /** Initialize an RTCVideoTrack with a source and an id. */ | |
| 40 - (RTCVideoTrack *)videoTrackWithSource:(RTCVideoSource *)source | |
| 41 trackId:(NSString *)trackId; | |
| 42 | |
| 43 /** Initialize an RTCMediaStream with an id. */ | |
| 44 - (RTCMediaStream *)mediaStreamWithStreamId:(NSString *)streamId; | |
| 45 | |
| 46 /** Initialize an RTCPeerConnection with a configuration, constraints, and | |
| 47 * delegate. | |
| 48 */ | |
| 49 - (RTCPeerConnection *)peerConnectionWithConfiguration: | |
| 50 (RTCConfiguration *)configuration | |
| 51 constraints: | |
| 52 (RTCMediaConstraints *)constraints | |
| 53 delegate: | |
| 54 (nullable id<RTCPeerConnectionDelegate>)delegate; | |
| 55 | |
| 56 @end | |
| 57 | |
| 58 NS_ASSUME_NONNULL_END | |
| OLD | NEW |