OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 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 #ifndef WEBRTC_MODULES_VIDEO_CAPTURE_IOS_DEVICE_INFO_IOS_OBJC_H_ | 11 #ifndef WEBRTC_MODULES_VIDEO_CAPTURE_OBJC_DEVICE_INFO_OBJC_H_ |
12 #define WEBRTC_MODULES_VIDEO_CAPTURE_IOS_DEVICE_INFO_IOS_OBJC_H_ | 12 #define WEBRTC_MODULES_VIDEO_CAPTURE_OBJC_DEVICE_INFO_OBJC_H_ |
13 | 13 |
14 #import <AVFoundation/AVFoundation.h> | 14 #import <AVFoundation/AVFoundation.h> |
15 | 15 |
16 #include "webrtc/modules/video_capture/video_capture_defines.h" | 16 #include "webrtc/modules/video_capture/video_capture_defines.h" |
17 | 17 |
18 @interface DeviceInfoIosObjC : NSObject | 18 @interface DeviceInfoIosObjC : NSObject |
19 + (int)captureDeviceCount; | 19 + (int)captureDeviceCount; |
20 + (AVCaptureDevice*)captureDeviceForIndex:(int)index; | 20 + (AVCaptureDevice*)captureDeviceForIndex:(int)index; |
21 + (AVCaptureDevice*)captureDeviceForUniqueId:(NSString*)uniqueId; | 21 + (AVCaptureDevice*)captureDeviceForUniqueId:(NSString*)uniqueId; |
22 + (NSString*)deviceNameForIndex:(int)index; | 22 + (NSString*)deviceNameForIndex:(int)index; |
23 + (NSString*)deviceUniqueIdForIndex:(int)index; | 23 + (NSString*)deviceUniqueIdForIndex:(int)index; |
24 + (NSString*)deviceNameForUniqueId:(NSString*)uniqueId; | 24 + (NSString*)deviceNameForUniqueId:(NSString*)uniqueId; |
25 + (webrtc::VideoCaptureCapability)capabilityForPreset:(NSString*)preset; | 25 + (webrtc::VideoCaptureCapability)capabilityForPreset:(NSString*)preset; |
26 | 26 |
27 @end | 27 @end |
28 | 28 |
29 #endif // WEBRTC_MODULES_VIDEO_CAPTURE_IOS_DEVICE_INFO_IOS_OBJC_H_ | 29 #endif // WEBRTC_MODULES_VIDEO_CAPTURE_OBJC_DEVICE_INFO_OBJC_H_ |
OLD | NEW |