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 | |
Mirko Bonadei | 19640aa | 2020-10-19 16:12:43 +0200 | [diff] [blame] | 13 | #import "sdk/objc/base/RTCVideoRenderer.h" |
| 14 | #import "sdk/objc/helpers/RTCCameraPreviewView.h" |
Donald E Curtis | a873644 | 2015-08-05 15:48:13 -0700 | [diff] [blame] | 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. |
dharmesh | f824ef8 | 2020-07-20 14:40:28 +0530 | [diff] [blame] | 22 | - (void)videoCallView:(ARDVideoCallView *)view |
| 23 | shouldSwitchCameraWithCompletion:(void (^)(NSError *))completion; |
Donald E Curtis | a873644 | 2015-08-05 15:48:13 -0700 | [diff] [blame] | 24 | |
tkchin | 0ce3bf9 | 2016-03-12 16:52:04 -0800 | [diff] [blame] | 25 | // Called when the route change button is pressed. |
dharmesh | f824ef8 | 2020-07-20 14:40:28 +0530 | [diff] [blame] | 26 | - (void)videoCallView:(ARDVideoCallView *)view |
| 27 | shouldChangeRouteWithCompletion:(void (^)(void))completion; |
tkchin | 0ce3bf9 | 2016-03-12 16:52:04 -0800 | [diff] [blame] | 28 | |
Donald E Curtis | a873644 | 2015-08-05 15:48:13 -0700 | [diff] [blame] | 29 | // Called when the hangup button is pressed. |
| 30 | - (void)videoCallViewDidHangup:(ARDVideoCallView *)view; |
| 31 | |
Zeke Chin | d332580 | 2015-08-14 11:00:02 -0700 | [diff] [blame] | 32 | // Called when stats are enabled by triple tapping. |
| 33 | - (void)videoCallViewDidEnableStats:(ARDVideoCallView *)view; |
| 34 | |
Donald E Curtis | a873644 | 2015-08-05 15:48:13 -0700 | [diff] [blame] | 35 | @end |
| 36 | |
| 37 | // Video call view that shows local and remote video, provides a label to |
| 38 | // display status, and also a hangup button. |
| 39 | @interface ARDVideoCallView : UIView |
| 40 | |
| 41 | @property(nonatomic, readonly) UILabel *statusLabel; |
Mirko Bonadei | a81e9c8 | 2020-05-04 16:14:32 +0200 | [diff] [blame] | 42 | @property(nonatomic, readonly) RTC_OBJC_TYPE(RTCCameraPreviewView) * localVideoView; |
| 43 | @property(nonatomic, readonly) __kindof UIView<RTC_OBJC_TYPE(RTCVideoRenderer)> *remoteVideoView; |
Zeke Chin | d332580 | 2015-08-14 11:00:02 -0700 | [diff] [blame] | 44 | @property(nonatomic, readonly) ARDStatsView *statsView; |
Donald E Curtis | a873644 | 2015-08-05 15:48:13 -0700 | [diff] [blame] | 45 | @property(nonatomic, weak) id<ARDVideoCallViewDelegate> delegate; |
| 46 | |
| 47 | @end |