OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2014 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 "APPRTCViewController.h" | 11 #import "APPRTCViewController.h" |
12 | 12 |
13 #import <AVFoundation/AVFoundation.h> | 13 #import <AVFoundation/AVFoundation.h> |
14 #import "ARDAppClient.h" | 14 #import "ARDAppClient.h" |
15 #import "RTCNSGLVideoView.h" | 15 #import "webrtc/api/objc/RTCNSGLVideoView.h" |
16 #import "RTCVideoTrack.h" | 16 #import "webrtc/api/objc/RTCVideoTrack.h" |
17 | 17 |
18 static NSUInteger const kContentWidth = 1280; | 18 static NSUInteger const kContentWidth = 1280; |
19 static NSUInteger const kContentHeight = 720; | 19 static NSUInteger const kContentHeight = 720; |
20 static NSUInteger const kRoomFieldWidth = 80; | 20 static NSUInteger const kRoomFieldWidth = 80; |
21 static NSUInteger const kLogViewHeight = 280; | 21 static NSUInteger const kLogViewHeight = 280; |
22 | 22 |
23 @class APPRTCMainView; | 23 @class APPRTCMainView; |
24 @protocol APPRTCMainViewDelegate | 24 @protocol APPRTCMainViewDelegate |
25 | 25 |
26 - (void)appRTCMainView:(APPRTCMainView*)mainView | 26 - (void)appRTCMainView:(APPRTCMainView*)mainView |
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 _remoteVideoTrack = nil; | 301 _remoteVideoTrack = nil; |
302 [self.mainView.remoteVideoView renderFrame:nil]; | 302 [self.mainView.remoteVideoView renderFrame:nil]; |
303 } | 303 } |
304 | 304 |
305 - (void)disconnect { | 305 - (void)disconnect { |
306 [self resetUI]; | 306 [self resetUI]; |
307 [_client disconnect]; | 307 [_client disconnect]; |
308 } | 308 } |
309 | 309 |
310 @end | 310 @end |
OLD | NEW |