1*d9f75844SAndroid Build Coastguard Worker /* 2*d9f75844SAndroid Build Coastguard Worker * Copyright 2015 The WebRTC Project Authors. All rights reserved. 3*d9f75844SAndroid Build Coastguard Worker * 4*d9f75844SAndroid Build Coastguard Worker * Use of this source code is governed by a BSD-style license 5*d9f75844SAndroid Build Coastguard Worker * that can be found in the LICENSE file in the root of the source 6*d9f75844SAndroid Build Coastguard Worker * tree. An additional intellectual property rights grant can be found 7*d9f75844SAndroid Build Coastguard Worker * in the file PATENTS. All contributing project authors may 8*d9f75844SAndroid Build Coastguard Worker * be found in the AUTHORS file in the root of the source tree. 9*d9f75844SAndroid Build Coastguard Worker */ 10*d9f75844SAndroid Build Coastguard Worker 11*d9f75844SAndroid Build Coastguard Worker #import <UIKit/UIKit.h> 12*d9f75844SAndroid Build Coastguard Worker 13*d9f75844SAndroid Build Coastguard Worker #import "sdk/objc/base/RTCVideoRenderer.h" 14*d9f75844SAndroid Build Coastguard Worker #import "sdk/objc/helpers/RTCCameraPreviewView.h" 15*d9f75844SAndroid Build Coastguard Worker 16*d9f75844SAndroid Build Coastguard Worker #import "ARDStatsView.h" 17*d9f75844SAndroid Build Coastguard Worker 18*d9f75844SAndroid Build Coastguard Worker @class ARDVideoCallView; 19*d9f75844SAndroid Build Coastguard Worker @protocol ARDVideoCallViewDelegate <NSObject> 20*d9f75844SAndroid Build Coastguard Worker 21*d9f75844SAndroid Build Coastguard Worker // Called when the camera switch button is pressed. 22*d9f75844SAndroid Build Coastguard Worker - (void)videoCallView:(ARDVideoCallView *)view 23*d9f75844SAndroid Build Coastguard Worker shouldSwitchCameraWithCompletion:(void (^)(NSError *))completion; 24*d9f75844SAndroid Build Coastguard Worker 25*d9f75844SAndroid Build Coastguard Worker // Called when the route change button is pressed. 26*d9f75844SAndroid Build Coastguard Worker - (void)videoCallView:(ARDVideoCallView *)view 27*d9f75844SAndroid Build Coastguard Worker shouldChangeRouteWithCompletion:(void (^)(void))completion; 28*d9f75844SAndroid Build Coastguard Worker 29*d9f75844SAndroid Build Coastguard Worker // Called when the hangup button is pressed. 30*d9f75844SAndroid Build Coastguard Worker - (void)videoCallViewDidHangup:(ARDVideoCallView *)view; 31*d9f75844SAndroid Build Coastguard Worker 32*d9f75844SAndroid Build Coastguard Worker // Called when stats are enabled by triple tapping. 33*d9f75844SAndroid Build Coastguard Worker - (void)videoCallViewDidEnableStats:(ARDVideoCallView *)view; 34*d9f75844SAndroid Build Coastguard Worker 35*d9f75844SAndroid Build Coastguard Worker @end 36*d9f75844SAndroid Build Coastguard Worker 37*d9f75844SAndroid Build Coastguard Worker // Video call view that shows local and remote video, provides a label to 38*d9f75844SAndroid Build Coastguard Worker // display status, and also a hangup button. 39*d9f75844SAndroid Build Coastguard Worker @interface ARDVideoCallView : UIView 40*d9f75844SAndroid Build Coastguard Worker 41*d9f75844SAndroid Build Coastguard Worker @property(nonatomic, readonly) UILabel *statusLabel; 42*d9f75844SAndroid Build Coastguard Worker @property(nonatomic, readonly) RTC_OBJC_TYPE(RTCCameraPreviewView) * localVideoView; 43*d9f75844SAndroid Build Coastguard Worker @property(nonatomic, readonly) __kindof UIView<RTC_OBJC_TYPE(RTCVideoRenderer)> *remoteVideoView; 44*d9f75844SAndroid Build Coastguard Worker @property(nonatomic, readonly) ARDStatsView *statsView; 45*d9f75844SAndroid Build Coastguard Worker @property(nonatomic, weak) id<ARDVideoCallViewDelegate> delegate; 46*d9f75844SAndroid Build Coastguard Worker 47*d9f75844SAndroid Build Coastguard Worker @end 48