blob: d76805f1046e2d766657d625f626e01b5398b82d [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
kthelgasona2fb30c2017-03-09 03:34:27 -080013#import <WebRTC/RTCCameraPreviewView.h>
14#import <WebRTC/RTCVideoRenderer.h>
Donald E Curtisa8736442015-08-05 15:48:13 -070015
Zeke Chind3325802015-08-14 11:00:02 -070016#import "ARDStatsView.h"
17
Donald E Curtisa8736442015-08-05 15:48:13 -070018@class ARDVideoCallView;
19@protocol ARDVideoCallViewDelegate <NSObject>
20
21// Called when the camera switch button is pressed.
22- (void)videoCallViewDidSwitchCamera:(ARDVideoCallView *)view;
23
tkchin0ce3bf92016-03-12 16:52:04 -080024// Called when the route change button is pressed.
25- (void)videoCallViewDidChangeRoute:(ARDVideoCallView *)view;
26
Donald E Curtisa8736442015-08-05 15:48:13 -070027// Called when the hangup button is pressed.
28- (void)videoCallViewDidHangup:(ARDVideoCallView *)view;
29
Zeke Chind3325802015-08-14 11:00:02 -070030// Called when stats are enabled by triple tapping.
31- (void)videoCallViewDidEnableStats:(ARDVideoCallView *)view;
32
Donald E Curtisa8736442015-08-05 15:48:13 -070033@end
34
35// Video call view that shows local and remote video, provides a label to
36// display status, and also a hangup button.
37@interface ARDVideoCallView : UIView
38
39@property(nonatomic, readonly) UILabel *statusLabel;
hayscedd8fef2015-12-08 11:08:39 -080040@property(nonatomic, readonly) RTCCameraPreviewView *localVideoView;
kthelgasona2fb30c2017-03-09 03:34:27 -080041@property(nonatomic, readonly) __kindof UIView<RTCVideoRenderer> *remoteVideoView;
Zeke Chind3325802015-08-14 11:00:02 -070042@property(nonatomic, readonly) ARDStatsView *statsView;
Donald E Curtisa8736442015-08-05 15:48:13 -070043@property(nonatomic, weak) id<ARDVideoCallViewDelegate> delegate;
44
45@end