Donald E Curtis | a873644 | 2015-08-05 15:48:13 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2015 The WebRTC Project Authors. All rights reserved. |
| 3 | * |
| 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 |
| 6 | * tree. An additional intellectual property rights grant can be found |
| 7 | * in the file PATENTS. All contributing project authors may |
| 8 | * be found in the AUTHORS file in the root of the source tree. |
| 9 | */ |
| 10 | |
| 11 | #import <UIKit/UIKit.h> |
| 12 | |
haysc | edd8fef | 2015-12-08 11:08:39 -0800 | [diff] [blame^] | 13 | #import "webrtc/base/objc/RTCCameraPreviewView.h" |
Donald E Curtis | a873644 | 2015-08-05 15:48:13 -0700 | [diff] [blame] | 14 | #import "RTCEAGLVideoView.h" |
| 15 | |
Zeke Chin | d332580 | 2015-08-14 11:00:02 -0700 | [diff] [blame] | 16 | #import "ARDStatsView.h" |
| 17 | |
Donald E Curtis | a873644 | 2015-08-05 15:48:13 -0700 | [diff] [blame] | 18 | @class ARDVideoCallView; |
| 19 | @protocol ARDVideoCallViewDelegate <NSObject> |
| 20 | |
| 21 | // Called when the camera switch button is pressed. |
| 22 | - (void)videoCallViewDidSwitchCamera:(ARDVideoCallView *)view; |
| 23 | |
| 24 | // Called when the hangup button is pressed. |
| 25 | - (void)videoCallViewDidHangup:(ARDVideoCallView *)view; |
| 26 | |
Zeke Chin | d332580 | 2015-08-14 11:00:02 -0700 | [diff] [blame] | 27 | // Called when stats are enabled by triple tapping. |
| 28 | - (void)videoCallViewDidEnableStats:(ARDVideoCallView *)view; |
| 29 | |
Donald E Curtis | a873644 | 2015-08-05 15:48:13 -0700 | [diff] [blame] | 30 | @end |
| 31 | |
| 32 | // Video call view that shows local and remote video, provides a label to |
| 33 | // display status, and also a hangup button. |
| 34 | @interface ARDVideoCallView : UIView |
| 35 | |
| 36 | @property(nonatomic, readonly) UILabel *statusLabel; |
haysc | edd8fef | 2015-12-08 11:08:39 -0800 | [diff] [blame^] | 37 | @property(nonatomic, readonly) RTCCameraPreviewView *localVideoView; |
Donald E Curtis | a873644 | 2015-08-05 15:48:13 -0700 | [diff] [blame] | 38 | @property(nonatomic, readonly) RTCEAGLVideoView *remoteVideoView; |
Zeke Chin | d332580 | 2015-08-14 11:00:02 -0700 | [diff] [blame] | 39 | @property(nonatomic, readonly) ARDStatsView *statsView; |
Donald E Curtis | a873644 | 2015-08-05 15:48:13 -0700 | [diff] [blame] | 40 | @property(nonatomic, weak) id<ARDVideoCallViewDelegate> delegate; |
| 41 | |
| 42 | @end |