
When user touches switch camera it takes a while for camera to switch. So disabled switch camera button on touch and enabled it back when switch camera is done. It also gives visual feedback to user. Did same change for route change button as well. Route change operation is relatively fast but making this change make it robust in case the operation takes time. Also changed image color and background color highlight color for touch highlight. Bug: webrtc:11778 Change-Id: I037b830f7a02b49bf292b8838bd245db585dbd22 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/179041 Commit-Queue: Kári Helgason <kthelgason@webrtc.org> Reviewed-by: Kári Helgason <kthelgason@webrtc.org> Cr-Commit-Position: refs/heads/master@{#31910}
48 lines
1.6 KiB
Objective-C
48 lines
1.6 KiB
Objective-C
/*
|
|
* Copyright 2015 The WebRTC Project Authors. All rights reserved.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license
|
|
* that can be found in the LICENSE file in the root of the source
|
|
* tree. An additional intellectual property rights grant can be found
|
|
* in the file PATENTS. All contributing project authors may
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
*/
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
#import <WebRTC/RTCCameraPreviewView.h>
|
|
#import <WebRTC/RTCVideoRenderer.h>
|
|
|
|
#import "ARDStatsView.h"
|
|
|
|
@class ARDVideoCallView;
|
|
@protocol ARDVideoCallViewDelegate <NSObject>
|
|
|
|
// Called when the camera switch button is pressed.
|
|
- (void)videoCallView:(ARDVideoCallView *)view
|
|
shouldSwitchCameraWithCompletion:(void (^)(NSError *))completion;
|
|
|
|
// Called when the route change button is pressed.
|
|
- (void)videoCallView:(ARDVideoCallView *)view
|
|
shouldChangeRouteWithCompletion:(void (^)(void))completion;
|
|
|
|
// Called when the hangup button is pressed.
|
|
- (void)videoCallViewDidHangup:(ARDVideoCallView *)view;
|
|
|
|
// Called when stats are enabled by triple tapping.
|
|
- (void)videoCallViewDidEnableStats:(ARDVideoCallView *)view;
|
|
|
|
@end
|
|
|
|
// Video call view that shows local and remote video, provides a label to
|
|
// display status, and also a hangup button.
|
|
@interface ARDVideoCallView : UIView
|
|
|
|
@property(nonatomic, readonly) UILabel *statusLabel;
|
|
@property(nonatomic, readonly) RTC_OBJC_TYPE(RTCCameraPreviewView) * localVideoView;
|
|
@property(nonatomic, readonly) __kindof UIView<RTC_OBJC_TYPE(RTCVideoRenderer)> *remoteVideoView;
|
|
@property(nonatomic, readonly) ARDStatsView *statsView;
|
|
@property(nonatomic, weak) id<ARDVideoCallViewDelegate> delegate;
|
|
|
|
@end
|