tor-browser

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

rtc_video_capture_objc.h (1532B)


      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_RTC_VIDEO_CAPTURE_OBJC_H_
     12 #define MODULES_VIDEO_CAPTURE_OBJC_RTC_VIDEO_CAPTURE_OBJC_H_
     13 
     14 #import <AVFoundation/AVFoundation.h>
     15 #import <Foundation/Foundation.h>
     16 #ifdef WEBRTC_IOS
     17 #  import <UIKit/UIKit.h>
     18 #endif
     19 
     20 #include "video_capture.h"
     21 
     22 // The following class listens to a notification with name:
     23 // 'StatusBarOrientationDidChange'.
     24 // This notification must be posted in order for the capturer to reflect the
     25 // orientation change in video w.r.t. the application orientation.
     26 @interface RTCVideoCaptureIosObjC
     27    : NSObject <AVCaptureVideoDataOutputSampleBufferDelegate>
     28 
     29 @property webrtc::VideoRotation frameRotation;
     30 
     31 // custom initializer. Instance of VideoCaptureIos is needed
     32 // for callback purposes.
     33 // default init methods have been overridden to return nil.
     34 - (id)initWithOwner:(webrtc::videocapturemodule::VideoCaptureIos*)owner;
     35 - (BOOL)setCaptureDeviceByUniqueId:(NSString*)uniqueId;
     36 - (BOOL)startCaptureWithCapability:
     37    (const webrtc::VideoCaptureCapability&)capability;
     38 - (BOOL)stopCapture;
     39 
     40 @end
     41 #endif  // MODULES_VIDEO_CAPTURE_OBJC_RTC_VIDEO_CAPTURE_OBJC_H_