Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(147)

Side by Side Diff: webrtc/examples/objc/AppRTCDemo/ios/ARDVideoCallView.h

Issue 1497393002: Add new view that renders local video using AVCaptureLayerPreview. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Removing duplicated check in presubmit.py Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright 2015 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2015 The WebRTC Project Authors. All rights reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 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 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 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
11 #import <UIKit/UIKit.h> 11 #import <UIKit/UIKit.h>
12 12
13 #import "webrtc/base/objc/RTCCameraPreviewView.h"
13 #import "RTCEAGLVideoView.h" 14 #import "RTCEAGLVideoView.h"
14 15
15 #import "ARDStatsView.h" 16 #import "ARDStatsView.h"
16 17
17 @class ARDVideoCallView; 18 @class ARDVideoCallView;
18 @protocol ARDVideoCallViewDelegate <NSObject> 19 @protocol ARDVideoCallViewDelegate <NSObject>
19 20
20 // Called when the camera switch button is pressed. 21 // Called when the camera switch button is pressed.
21 - (void)videoCallViewDidSwitchCamera:(ARDVideoCallView *)view; 22 - (void)videoCallViewDidSwitchCamera:(ARDVideoCallView *)view;
22 23
23 // Called when the hangup button is pressed. 24 // Called when the hangup button is pressed.
24 - (void)videoCallViewDidHangup:(ARDVideoCallView *)view; 25 - (void)videoCallViewDidHangup:(ARDVideoCallView *)view;
25 26
26 // Called when stats are enabled by triple tapping. 27 // Called when stats are enabled by triple tapping.
27 - (void)videoCallViewDidEnableStats:(ARDVideoCallView *)view; 28 - (void)videoCallViewDidEnableStats:(ARDVideoCallView *)view;
28 29
29 @end 30 @end
30 31
31 // Video call view that shows local and remote video, provides a label to 32 // Video call view that shows local and remote video, provides a label to
32 // display status, and also a hangup button. 33 // display status, and also a hangup button.
33 @interface ARDVideoCallView : UIView 34 @interface ARDVideoCallView : UIView
34 35
35 @property(nonatomic, readonly) UILabel *statusLabel; 36 @property(nonatomic, readonly) UILabel *statusLabel;
36 @property(nonatomic, readonly) RTCEAGLVideoView *localVideoView; 37 @property(nonatomic, readonly) RTCCameraPreviewView *localVideoView;
37 @property(nonatomic, readonly) RTCEAGLVideoView *remoteVideoView; 38 @property(nonatomic, readonly) RTCEAGLVideoView *remoteVideoView;
38 @property(nonatomic, readonly) ARDStatsView *statsView; 39 @property(nonatomic, readonly) ARDStatsView *statsView;
39 @property(nonatomic, weak) id<ARDVideoCallViewDelegate> delegate; 40 @property(nonatomic, weak) id<ARDVideoCallViewDelegate> delegate;
40 41
41 @end 42 @end
OLDNEW
« no previous file with comments | « webrtc/examples/objc/AppRTCDemo/ios/ARDMainView.m ('k') | webrtc/examples/objc/AppRTCDemo/ios/ARDVideoCallView.m » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698