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

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: Created 4 years, 10 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
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 "RTCVideoTrack.h" 13 #import "webrtc/api/objc/RTCPeerConnection.h"
14 #import "webrtc/api/objc/RTCVideoTrack.h"
hjon_webrtc 2016/02/12 17:34:56 Should all of these paths be absolute? That seemed
14 15
15 typedef NS_ENUM(NSInteger, ARDAppClientState) { 16 typedef NS_ENUM(NSInteger, ARDAppClientState) {
16 // Disconnected from servers. 17 // Disconnected from servers.
17 kARDAppClientStateDisconnected, 18 kARDAppClientStateDisconnected,
18 // Connecting to servers. 19 // Connecting to servers.
19 kARDAppClientStateConnecting, 20 kARDAppClientStateConnecting,
20 // Connected to servers. 21 // Connected to servers.
21 kARDAppClientStateConnected, 22 kARDAppClientStateConnected,
22 }; 23 };
23 24
24 @class ARDAppClient; 25 @class ARDAppClient;
25 // The delegate is informed of pertinent events and will be called on the 26 // The delegate is informed of pertinent events and will be called on the
26 // main queue. 27 // main queue.
27 @protocol ARDAppClientDelegate <NSObject> 28 @protocol ARDAppClientDelegate <NSObject>
28 29
29 - (void)appClient:(ARDAppClient *)client 30 - (void)appClient:(ARDAppClient *)client
30 didChangeState:(ARDAppClientState)state; 31 didChangeState:(ARDAppClientState)state;
31 32
32 - (void)appClient:(ARDAppClient *)client 33 - (void)appClient:(ARDAppClient *)client
33 didChangeConnectionState:(RTCICEConnectionState)state; 34 didChangeConnectionState:(RTCIceConnectionState)state;
34 35
35 - (void)appClient:(ARDAppClient *)client 36 - (void)appClient:(ARDAppClient *)client
36 didReceiveLocalVideoTrack:(RTCVideoTrack *)localVideoTrack; 37 didReceiveLocalVideoTrack:(RTCVideoTrack *)localVideoTrack;
37 38
38 - (void)appClient:(ARDAppClient *)client 39 - (void)appClient:(ARDAppClient *)client
39 didReceiveRemoteVideoTrack:(RTCVideoTrack *)remoteVideoTrack; 40 didReceiveRemoteVideoTrack:(RTCVideoTrack *)remoteVideoTrack;
40 41
41 - (void)appClient:(ARDAppClient *)client 42 - (void)appClient:(ARDAppClient *)client
42 didError:(NSError *)error; 43 didError:(NSError *)error;
43 44
(...skipping 20 matching lines...) Expand all
64 // If |isLoopback| is true, the call will connect to itself. 65 // If |isLoopback| is true, the call will connect to itself.
65 // If |isAudioOnly| is true, video will be disabled for the call. 66 // If |isAudioOnly| is true, video will be disabled for the call.
66 - (void)connectToRoomWithId:(NSString *)roomId 67 - (void)connectToRoomWithId:(NSString *)roomId
67 isLoopback:(BOOL)isLoopback 68 isLoopback:(BOOL)isLoopback
68 isAudioOnly:(BOOL)isAudioOnly; 69 isAudioOnly:(BOOL)isAudioOnly;
69 70
70 // Disconnects from the AppRTC servers and any connected clients. 71 // Disconnects from the AppRTC servers and any connected clients.
71 - (void)disconnect; 72 - (void)disconnect;
72 73
73 @end 74 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698