blob: 31e0e4dd7c588fd79d1b78b9ad8c1f0e0f87dd52 [file] [log] [blame]
Donald E Curtisa8736442015-08-05 15:48:13 -07001/*
2 * Copyright 2014 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 "ARDAppClient.h"
12
Mirko Bonadei19640aa2020-10-19 16:12:43 +020013#import "sdk/objc/api/peerconnection/RTCPeerConnection.h"
hjon79858f82016-03-13 22:08:26 -070014
Donald E Curtisa8736442015-08-05 15:48:13 -070015#import "ARDRoomServerClient.h"
16#import "ARDSignalingChannel.h"
17#import "ARDTURNClient.h"
hjon79858f82016-03-13 22:08:26 -070018
Mirko Bonadeia81e9c82020-05-04 16:14:32 +020019@class RTC_OBJC_TYPE(RTCPeerConnectionFactory);
Donald E Curtisa8736442015-08-05 15:48:13 -070020
Mirko Bonadeia81e9c82020-05-04 16:14:32 +020021@interface ARDAppClient () <ARDSignalingChannelDelegate, RTC_OBJC_TYPE (RTCPeerConnectionDelegate)>
Donald E Curtisa8736442015-08-05 15:48:13 -070022
23// All properties should only be mutated from the main queue.
24@property(nonatomic, strong) id<ARDRoomServerClient> roomServerClient;
25@property(nonatomic, strong) id<ARDSignalingChannel> channel;
haysc913e6452015-10-02 11:44:03 -070026@property(nonatomic, strong) id<ARDSignalingChannel> loopbackChannel;
Donald E Curtisa8736442015-08-05 15:48:13 -070027@property(nonatomic, strong) id<ARDTURNClient> turnClient;
28
Mirko Bonadeia81e9c82020-05-04 16:14:32 +020029@property(nonatomic, strong) RTC_OBJC_TYPE(RTCPeerConnection) * peerConnection;
30@property(nonatomic, strong) RTC_OBJC_TYPE(RTCPeerConnectionFactory) * factory;
Donald E Curtisa8736442015-08-05 15:48:13 -070031@property(nonatomic, strong) NSMutableArray *messageQueue;
32
33@property(nonatomic, assign) BOOL isTurnComplete;
34@property(nonatomic, assign) BOOL hasReceivedSdp;
35@property(nonatomic, readonly) BOOL hasJoinedRoomServerRoom;
36
37@property(nonatomic, strong) NSString *roomId;
38@property(nonatomic, strong) NSString *clientId;
39@property(nonatomic, assign) BOOL isInitiator;
40@property(nonatomic, strong) NSMutableArray *iceServers;
41@property(nonatomic, strong) NSURL *webSocketURL;
42@property(nonatomic, strong) NSURL *webSocketRestURL;
haysc913e6452015-10-02 11:44:03 -070043@property(nonatomic, readonly) BOOL isLoopback;
Donald E Curtisa8736442015-08-05 15:48:13 -070044
Mirko Bonadeia81e9c82020-05-04 16:14:32 +020045@property(nonatomic, strong) RTC_OBJC_TYPE(RTCMediaConstraints) * defaultPeerConnectionConstraints;
Donald E Curtisa8736442015-08-05 15:48:13 -070046
47- (instancetype)initWithRoomServerClient:(id<ARDRoomServerClient>)rsClient
48 signalingChannel:(id<ARDSignalingChannel>)channel
49 turnClient:(id<ARDTURNClient>)turnClient
50 delegate:(id<ARDAppClientDelegate>)delegate;
51
52@end