Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(475)

Side by Side Diff: webrtc/examples/objc/AppRTCMobile/ARDAppClient.h

Issue 2778163005: Use new RTCCameraVideoCapturer in AppRTCMobile. (Closed)
Patch Set: Remove localCapturer property from ARDVideoCallViewController. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/examples/BUILD.gn ('k') | webrtc/examples/objc/AppRTCMobile/ARDAppClient.m » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « webrtc/examples/BUILD.gn ('k') | webrtc/examples/objc/AppRTCMobile/ARDAppClient.m » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698