tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

device_info_objc.h (1314B)


      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 MODULES_VIDEO_CAPTURE_OBJC_DEVICE_INFO_OBJC_H_
     12 #define MODULES_VIDEO_CAPTURE_OBJC_DEVICE_INFO_OBJC_H_
     13 
     14 #import <AVFoundation/AVFoundation.h>
     15 
     16 #include "device_info.h"
     17 #include "modules/video_capture/video_capture_defines.h"
     18 
     19 @interface DeviceInfoIosObjC : NSObject {
     20  NSArray* _observers;
     21  NSLock* _lock;
     22  webrtc::VideoCaptureModule::DeviceInfo* _owner;
     23 }
     24 
     25 + (int)captureDeviceCount;
     26 + (AVCaptureDevice*)captureDeviceForIndex:(int)index;
     27 + (AVCaptureDevice*)captureDeviceForUniqueId:(NSString*)uniqueId;
     28 + (NSString*)deviceNameForIndex:(int)index;
     29 + (NSString*)deviceUniqueIdForIndex:(int)index;
     30 + (NSString*)deviceNameForUniqueId:(NSString*)uniqueId;
     31 + (webrtc::VideoCaptureCapability)capabilityForPreset:(NSString*)preset;
     32 
     33 - (void)registerOwner:(webrtc::VideoCaptureModule::DeviceInfo*)owner;
     34 - (void)configureObservers;
     35 
     36 @end
     37 
     38 #endif  // MODULES_VIDEO_CAPTURE_OBJC_DEVICE_INFO_OBJC_H_