blob: 209bcd462c739aa5378fda3628262e050130b783 [file] [log] [blame]
Donald E Curtisa8736442015-08-05 15:48:13 -07001/*
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
13#import "RTCEAGLVideoView.h"
14
Zeke Chind3325802015-08-14 11:00:02 -070015#import "ARDStatsView.h"
16
Donald E Curtisa8736442015-08-05 15:48:13 -070017@class ARDVideoCallView;
18@protocol ARDVideoCallViewDelegate <NSObject>
19
20// Called when the camera switch button is pressed.
21- (void)videoCallViewDidSwitchCamera:(ARDVideoCallView *)view;
22
23// Called when the hangup button is pressed.
24- (void)videoCallViewDidHangup:(ARDVideoCallView *)view;
25
Zeke Chind3325802015-08-14 11:00:02 -070026// Called when stats are enabled by triple tapping.
27- (void)videoCallViewDidEnableStats:(ARDVideoCallView *)view;
28
Donald E Curtisa8736442015-08-05 15:48:13 -070029@end
30
31// Video call view that shows local and remote video, provides a label to
32// display status, and also a hangup button.
33@interface ARDVideoCallView : UIView
34
35@property(nonatomic, readonly) UILabel *statusLabel;
36@property(nonatomic, readonly) RTCEAGLVideoView *localVideoView;
37@property(nonatomic, readonly) RTCEAGLVideoView *remoteVideoView;
Zeke Chind3325802015-08-14 11:00:02 -070038@property(nonatomic, readonly) ARDStatsView *statsView;
Donald E Curtisa8736442015-08-05 15:48:13 -070039@property(nonatomic, weak) id<ARDVideoCallViewDelegate> delegate;
40
41@end