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 <Foundation/Foundation.h> | 11 #import <Foundation/Foundation.h> |
12 | 12 |
| 13 #import "WebRTC/RTCCameraVideoCapturer.h" |
13 #import "WebRTC/RTCPeerConnection.h" | 14 #import "WebRTC/RTCPeerConnection.h" |
14 #import "WebRTC/RTCVideoTrack.h" | 15 #import "WebRTC/RTCVideoTrack.h" |
15 | 16 |
16 typedef NS_ENUM(NSInteger, ARDAppClientState) { | 17 typedef NS_ENUM(NSInteger, ARDAppClientState) { |
17 // Disconnected from servers. | 18 // Disconnected from servers. |
18 kARDAppClientStateDisconnected, | 19 kARDAppClientStateDisconnected, |
19 // Connecting to servers. | 20 // Connecting to servers. |
20 kARDAppClientStateConnecting, | 21 kARDAppClientStateConnecting, |
21 // Connected to servers. | 22 // Connected to servers. |
22 kARDAppClientStateConnected, | 23 kARDAppClientStateConnected, |
23 }; | 24 }; |
24 | 25 |
25 @class ARDAppClient; | 26 @class ARDAppClient; |
26 @class ARDSettingsModel; | 27 @class ARDSettingsModel; |
27 @class RTCMediaConstraints; | 28 @class RTCMediaConstraints; |
28 | 29 |
29 // The delegate is informed of pertinent events and will be called on the | 30 // The delegate is informed of pertinent events and will be called on the |
30 // main queue. | 31 // main queue. |
31 @protocol ARDAppClientDelegate <NSObject> | 32 @protocol ARDAppClientDelegate <NSObject> |
32 | 33 |
33 - (void)appClient:(ARDAppClient *)client | 34 - (void)appClient:(ARDAppClient *)client |
34 didChangeState:(ARDAppClientState)state; | 35 didChangeState:(ARDAppClientState)state; |
35 | 36 |
36 - (void)appClient:(ARDAppClient *)client | 37 - (void)appClient:(ARDAppClient *)client |
37 didChangeConnectionState:(RTCIceConnectionState)state; | 38 didChangeConnectionState:(RTCIceConnectionState)state; |
38 | 39 |
39 - (void)appClient:(ARDAppClient *)client | 40 - (void)appClient:(ARDAppClient *)client |
| 41 didCreateLocalCapturer:(RTCCameraVideoCapturer *)localCapturer; |
| 42 |
| 43 - (void)appClient:(ARDAppClient *)client |
40 didReceiveLocalVideoTrack:(RTCVideoTrack *)localVideoTrack; | 44 didReceiveLocalVideoTrack:(RTCVideoTrack *)localVideoTrack; |
41 | 45 |
42 - (void)appClient:(ARDAppClient *)client | 46 - (void)appClient:(ARDAppClient *)client |
43 didReceiveRemoteVideoTrack:(RTCVideoTrack *)remoteVideoTrack; | 47 didReceiveRemoteVideoTrack:(RTCVideoTrack *)remoteVideoTrack; |
44 | 48 |
45 - (void)appClient:(ARDAppClient *)client | 49 - (void)appClient:(ARDAppClient *)client |
46 didError:(NSError *)error; | 50 didError:(NSError *)error; |
47 | 51 |
48 - (void)appClient:(ARDAppClient *)client | 52 - (void)appClient:(ARDAppClient *)client |
49 didGetStats:(NSArray *)stats; | 53 didGetStats:(NSArray *)stats; |
(...skipping 24 matching lines...) Expand all Loading... |
74 settings:(ARDSettingsModel *)settings | 78 settings:(ARDSettingsModel *)settings |
75 isLoopback:(BOOL)isLoopback | 79 isLoopback:(BOOL)isLoopback |
76 isAudioOnly:(BOOL)isAudioOnly | 80 isAudioOnly:(BOOL)isAudioOnly |
77 shouldMakeAecDump:(BOOL)shouldMakeAecDump | 81 shouldMakeAecDump:(BOOL)shouldMakeAecDump |
78 shouldUseLevelControl:(BOOL)shouldUseLevelControl; | 82 shouldUseLevelControl:(BOOL)shouldUseLevelControl; |
79 | 83 |
80 // Disconnects from the AppRTC servers and any connected clients. | 84 // Disconnects from the AppRTC servers and any connected clients. |
81 - (void)disconnect; | 85 - (void)disconnect; |
82 | 86 |
83 @end | 87 @end |
OLD | NEW |