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

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

Issue 1289623005: Add stats overlay to iOS AppRTCDemo. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: CR comments Created 5 years, 4 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
(...skipping 23 matching lines...) Expand all
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
44 - (void)appClient:(ARDAppClient *)client
45 didGetStats:(NSArray *)stats;
46
44 @end 47 @end
45 48
46 // Handles connections to the AppRTC server for a given room. Methods on this 49 // Handles connections to the AppRTC server for a given room. Methods on this
47 // class should only be called from the main queue. 50 // class should only be called from the main queue.
48 @interface ARDAppClient : NSObject 51 @interface ARDAppClient : NSObject
49 52
53 // If |shouldGetStats| is true, stats will be reported in 1s intervals through
54 // the delegate.
55 @property(nonatomic, assign) BOOL shouldGetStats;
50 @property(nonatomic, readonly) ARDAppClientState state; 56 @property(nonatomic, readonly) ARDAppClientState state;
51 @property(nonatomic, weak) id<ARDAppClientDelegate> delegate; 57 @property(nonatomic, weak) id<ARDAppClientDelegate> delegate;
52 58
53 // Convenience constructor since all expected use cases will need a delegate 59 // Convenience constructor since all expected use cases will need a delegate
54 // in order to receive remote tracks. 60 // in order to receive remote tracks.
55 - (instancetype)initWithDelegate:(id<ARDAppClientDelegate>)delegate; 61 - (instancetype)initWithDelegate:(id<ARDAppClientDelegate>)delegate;
56 62
57 // Establishes a connection with the AppRTC servers for the given room id. 63 // Establishes a connection with the AppRTC servers for the given room id.
58 // TODO(tkchin): provide available keys/values for options. This will be used 64 // TODO(tkchin): provide available keys/values for options. This will be used
59 // for call configurations such as overriding server choice, specifying codecs 65 // for call configurations such as overriding server choice, specifying codecs
60 // and so on. 66 // and so on.
61 - (void)connectToRoomWithId:(NSString *)roomId 67 - (void)connectToRoomWithId:(NSString *)roomId
62 options:(NSDictionary *)options; 68 options:(NSDictionary *)options;
63 69
64 // Disconnects from the AppRTC servers and any connected clients. 70 // Disconnects from the AppRTC servers and any connected clients.
65 - (void)disconnect; 71 - (void)disconnect;
66 72
67 @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