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