• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  *  Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
3  *
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
6  *  tree. An additional intellectual property rights grant can be found
7  *  in the file PATENTS.  All contributing project authors may
8  *  be found in the AUTHORS file in the root of the source tree.
9  */
10 
11 #ifndef WEBRTC_MODULES_VIDEO_CAPTURE_IOS_DEVICE_INFO_IOS_OBJC_H_
12 #define WEBRTC_MODULES_VIDEO_CAPTURE_IOS_DEVICE_INFO_IOS_OBJC_H_
13 
14 #import <AVFoundation/AVFoundation.h>
15 
16 #include "webrtc/modules/video_capture/video_capture_defines.h"
17 
18 @interface DeviceInfoIosObjC : NSObject
19 + (int)captureDeviceCount;
20 + (AVCaptureDevice*)captureDeviceForIndex:(int)index;
21 + (AVCaptureDevice*)captureDeviceForUniqueId:(NSString*)uniqueId;
22 + (NSString*)deviceNameForIndex:(int)index;
23 + (NSString*)deviceUniqueIdForIndex:(int)index;
24 + (NSString*)deviceNameForUniqueId:(NSString*)uniqueId;
25 + (webrtc::VideoCaptureCapability)capabilityForPreset:(NSString*)preset;
26 
27 @end
28 
29 #endif  // WEBRTC_MODULES_VIDEO_CAPTURE_IOS_DEVICE_INFO_IOS_OBJC_H_
30