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

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

Issue 1690313002: Update iOS AppRTCDemo to use the updated Objective-C API. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Update against master Created 4 years, 9 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 | « no previous file | webrtc/examples/objc/AppRTCDemo/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 #import "webrtc/api/objc/RTCPeerConnection.h"
13 #import "RTCVideoTrack.h" 13 #import "webrtc/api/objc/RTCVideoTrack.h"
14 14
15 typedef NS_ENUM(NSInteger, ARDAppClientState) { 15 typedef NS_ENUM(NSInteger, ARDAppClientState) {
16 // Disconnected from servers. 16 // Disconnected from servers.
17 kARDAppClientStateDisconnected, 17 kARDAppClientStateDisconnected,
18 // Connecting to servers. 18 // Connecting to servers.
19 kARDAppClientStateConnecting, 19 kARDAppClientStateConnecting,
20 // Connected to servers. 20 // Connected to servers.
21 kARDAppClientStateConnected, 21 kARDAppClientStateConnected,
22 }; 22 };
23 23
24 @class ARDAppClient; 24 @class ARDAppClient;
25 // The delegate is informed of pertinent events and will be called on the 25 // The delegate is informed of pertinent events and will be called on the
26 // main queue. 26 // main queue.
27 @protocol ARDAppClientDelegate <NSObject> 27 @protocol ARDAppClientDelegate <NSObject>
28 28
29 - (void)appClient:(ARDAppClient *)client 29 - (void)appClient:(ARDAppClient *)client
30 didChangeState:(ARDAppClientState)state; 30 didChangeState:(ARDAppClientState)state;
31 31
32 - (void)appClient:(ARDAppClient *)client 32 - (void)appClient:(ARDAppClient *)client
33 didChangeConnectionState:(RTCICEConnectionState)state; 33 didChangeConnectionState:(RTCIceConnectionState)state;
34 34
35 - (void)appClient:(ARDAppClient *)client 35 - (void)appClient:(ARDAppClient *)client
36 didReceiveLocalVideoTrack:(RTCVideoTrack *)localVideoTrack; 36 didReceiveLocalVideoTrack:(RTCVideoTrack *)localVideoTrack;
37 37
38 - (void)appClient:(ARDAppClient *)client 38 - (void)appClient:(ARDAppClient *)client
39 didReceiveRemoteVideoTrack:(RTCVideoTrack *)remoteVideoTrack; 39 didReceiveRemoteVideoTrack:(RTCVideoTrack *)remoteVideoTrack;
40 40
41 - (void)appClient:(ARDAppClient *)client 41 - (void)appClient:(ARDAppClient *)client
42 didError:(NSError *)error; 42 didError:(NSError *)error;
43 43
(...skipping 20 matching lines...) Expand all
64 // If |isLoopback| is true, the call will connect to itself. 64 // If |isLoopback| is true, the call will connect to itself.
65 // If |isAudioOnly| is true, video will be disabled for the call. 65 // If |isAudioOnly| is true, video will be disabled for the call.
66 - (void)connectToRoomWithId:(NSString *)roomId 66 - (void)connectToRoomWithId:(NSString *)roomId
67 isLoopback:(BOOL)isLoopback 67 isLoopback:(BOOL)isLoopback
68 isAudioOnly:(BOOL)isAudioOnly; 68 isAudioOnly:(BOOL)isAudioOnly;
69 69
70 // Disconnects from the AppRTC servers and any connected clients. 70 // Disconnects from the AppRTC servers and any connected clients.
71 - (void)disconnect; 71 - (void)disconnect;
72 72
73 @end 73 @end
OLDNEW
« no previous file with comments | « no previous file | webrtc/examples/objc/AppRTCDemo/ARDAppClient.m » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698