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

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

Issue 2722583002: Add Metal video view in AppRTCMobile and metal availability macro. (Closed)
Patch Set: Replace macro check to be gcc compatible as well. Created 3 years, 9 months 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
« no previous file with comments | « no previous file | webrtc/examples/objc/AppRTCMobile/ios/ARDVideoCallView.m » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/RTCCameraPreviewView.h" 13 #import <WebRTC/RTCCameraPreviewView.h>
14 #import "WebRTC/RTCEAGLVideoView.h" 14 #import <WebRTC/RTCVideoRenderer.h>
15 15
16 #import "ARDStatsView.h" 16 #import "ARDStatsView.h"
17 17
18 @class ARDVideoCallView; 18 @class ARDVideoCallView;
19 @protocol ARDVideoCallViewDelegate <NSObject> 19 @protocol ARDVideoCallViewDelegate <NSObject>
20 20
21 // Called when the camera switch button is pressed. 21 // Called when the camera switch button is pressed.
22 - (void)videoCallViewDidSwitchCamera:(ARDVideoCallView *)view; 22 - (void)videoCallViewDidSwitchCamera:(ARDVideoCallView *)view;
23 23
24 // Called when the route change button is pressed. 24 // Called when the route change button is pressed.
25 - (void)videoCallViewDidChangeRoute:(ARDVideoCallView *)view; 25 - (void)videoCallViewDidChangeRoute:(ARDVideoCallView *)view;
26 26
27 // Called when the hangup button is pressed. 27 // Called when the hangup button is pressed.
28 - (void)videoCallViewDidHangup:(ARDVideoCallView *)view; 28 - (void)videoCallViewDidHangup:(ARDVideoCallView *)view;
29 29
30 // Called when stats are enabled by triple tapping. 30 // Called when stats are enabled by triple tapping.
31 - (void)videoCallViewDidEnableStats:(ARDVideoCallView *)view; 31 - (void)videoCallViewDidEnableStats:(ARDVideoCallView *)view;
32 32
33 @end 33 @end
34 34
35 // Video call view that shows local and remote video, provides a label to 35 // Video call view that shows local and remote video, provides a label to
36 // display status, and also a hangup button. 36 // display status, and also a hangup button.
37 @interface ARDVideoCallView : UIView 37 @interface ARDVideoCallView : UIView
38 38
39 @property(nonatomic, readonly) UILabel *statusLabel; 39 @property(nonatomic, readonly) UILabel *statusLabel;
40 @property(nonatomic, readonly) RTCCameraPreviewView *localVideoView; 40 @property(nonatomic, readonly) RTCCameraPreviewView *localVideoView;
41 @property(nonatomic, readonly) RTCEAGLVideoView *remoteVideoView; 41 @property(nonatomic, readonly) __kindof UIView<RTCVideoRenderer> *remoteVideoVie w;
42 @property(nonatomic, readonly) ARDStatsView *statsView; 42 @property(nonatomic, readonly) ARDStatsView *statsView;
43 @property(nonatomic, weak) id<ARDVideoCallViewDelegate> delegate; 43 @property(nonatomic, weak) id<ARDVideoCallViewDelegate> delegate;
44 44
45 @end 45 @end
OLDNEW
« no previous file with comments | « no previous file | webrtc/examples/objc/AppRTCMobile/ios/ARDVideoCallView.m » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698