OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2014 The WebRTC Project Authors. All rights reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 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 | 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 | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #import "ARDAppClient.h" | 11 #import "ARDAppClient.h" |
12 | 12 |
13 #import "ARDRoomServerClient.h" | 13 #import "ARDRoomServerClient.h" |
14 #import "ARDSignalingChannel.h" | 14 #import "ARDSignalingChannel.h" |
15 #import "ARDTURNClient.h" | 15 #import "ARDTURNClient.h" |
16 #import "RTCPeerConnection.h" | 16 #import "RTCPeerConnection.h" |
17 #import "RTCPeerConnectionDelegate.h" | 17 #import "RTCPeerConnectionDelegate.h" |
18 #import "RTCPeerConnectionFactory.h" | 18 #import "RTCPeerConnectionFactory.h" |
19 #import "RTCSessionDescriptionDelegate.h" | 19 #import "RTCSessionDescriptionDelegate.h" |
| 20 #import "RTCStatsDelegate.h" |
20 | 21 |
21 @interface ARDAppClient () <ARDSignalingChannelDelegate, | 22 @interface ARDAppClient () <ARDSignalingChannelDelegate, |
22 RTCPeerConnectionDelegate, RTCSessionDescriptionDelegate> | 23 RTCPeerConnectionDelegate, RTCSessionDescriptionDelegate, RTCStatsDelegate> |
23 | 24 |
24 // All properties should only be mutated from the main queue. | 25 // All properties should only be mutated from the main queue. |
25 @property(nonatomic, strong) id<ARDRoomServerClient> roomServerClient; | 26 @property(nonatomic, strong) id<ARDRoomServerClient> roomServerClient; |
26 @property(nonatomic, strong) id<ARDSignalingChannel> channel; | 27 @property(nonatomic, strong) id<ARDSignalingChannel> channel; |
27 @property(nonatomic, strong) id<ARDTURNClient> turnClient; | 28 @property(nonatomic, strong) id<ARDTURNClient> turnClient; |
28 | 29 |
29 @property(nonatomic, strong) RTCPeerConnection *peerConnection; | 30 @property(nonatomic, strong) RTCPeerConnection *peerConnection; |
30 @property(nonatomic, strong) RTCPeerConnectionFactory *factory; | 31 @property(nonatomic, strong) RTCPeerConnectionFactory *factory; |
31 @property(nonatomic, strong) NSMutableArray *messageQueue; | 32 @property(nonatomic, strong) NSMutableArray *messageQueue; |
32 | 33 |
(...skipping 10 matching lines...) Expand all Loading... |
43 | 44 |
44 @property(nonatomic, strong) | 45 @property(nonatomic, strong) |
45 RTCMediaConstraints *defaultPeerConnectionConstraints; | 46 RTCMediaConstraints *defaultPeerConnectionConstraints; |
46 | 47 |
47 - (instancetype)initWithRoomServerClient:(id<ARDRoomServerClient>)rsClient | 48 - (instancetype)initWithRoomServerClient:(id<ARDRoomServerClient>)rsClient |
48 signalingChannel:(id<ARDSignalingChannel>)channel | 49 signalingChannel:(id<ARDSignalingChannel>)channel |
49 turnClient:(id<ARDTURNClient>)turnClient | 50 turnClient:(id<ARDTURNClient>)turnClient |
50 delegate:(id<ARDAppClientDelegate>)delegate; | 51 delegate:(id<ARDAppClientDelegate>)delegate; |
51 | 52 |
52 @end | 53 @end |
OLD | NEW |