OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2015 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 <UIKit/UIKit.h> | 11 #import <UIKit/UIKit.h> |
12 | 12 |
13 #import "RTCEAGLVideoView.h" | 13 #import "RTCEAGLVideoView.h" |
14 | 14 |
| 15 #import "ARDStatsView.h" |
| 16 |
15 @class ARDVideoCallView; | 17 @class ARDVideoCallView; |
16 @protocol ARDVideoCallViewDelegate <NSObject> | 18 @protocol ARDVideoCallViewDelegate <NSObject> |
17 | 19 |
18 // Called when the camera switch button is pressed. | 20 // Called when the camera switch button is pressed. |
19 - (void)videoCallViewDidSwitchCamera:(ARDVideoCallView *)view; | 21 - (void)videoCallViewDidSwitchCamera:(ARDVideoCallView *)view; |
20 | 22 |
21 // Called when the hangup button is pressed. | 23 // Called when the hangup button is pressed. |
22 - (void)videoCallViewDidHangup:(ARDVideoCallView *)view; | 24 - (void)videoCallViewDidHangup:(ARDVideoCallView *)view; |
23 | 25 |
| 26 // Called when stats are enabled by triple tapping. |
| 27 - (void)videoCallViewDidEnableStats:(ARDVideoCallView *)view; |
| 28 |
24 @end | 29 @end |
25 | 30 |
26 // Video call view that shows local and remote video, provides a label to | 31 // Video call view that shows local and remote video, provides a label to |
27 // display status, and also a hangup button. | 32 // display status, and also a hangup button. |
28 @interface ARDVideoCallView : UIView | 33 @interface ARDVideoCallView : UIView |
29 | 34 |
30 @property(nonatomic, readonly) UILabel *statusLabel; | 35 @property(nonatomic, readonly) UILabel *statusLabel; |
31 @property(nonatomic, readonly) RTCEAGLVideoView *localVideoView; | 36 @property(nonatomic, readonly) RTCEAGLVideoView *localVideoView; |
32 @property(nonatomic, readonly) RTCEAGLVideoView *remoteVideoView; | 37 @property(nonatomic, readonly) RTCEAGLVideoView *remoteVideoView; |
| 38 @property(nonatomic, readonly) ARDStatsView *statsView; |
33 @property(nonatomic, weak) id<ARDVideoCallViewDelegate> delegate; | 39 @property(nonatomic, weak) id<ARDVideoCallViewDelegate> delegate; |
34 | 40 |
35 @end | 41 @end |
OLD | NEW |