| #import <Foundation/Foundation.h> |
| 6 | #import <UIKit/UIKit.h> |
| 7 |
| 8 | #include <memory> |
| 9 |
| 10 | @class AVCaptureVideoPreviewLayer; |
| 11 |
| 12 | @interface VideoCaptureView : UIView |
| 13 |
| 14 | @property(nonatomic) UIViewContentMode videoContentMode; |
| 15 | @property(nonatomic, getter=isEnabled) BOOL enabled; |
| 16 | @property(nonatomic, nullable) NSValue* rotationOverride; |
| 17 |
| 18 | @property (nonatomic, readwrite) int internalOrientation; |
| 19 | @property (nonatomic, readwrite) CGFloat internalAspect; |
| 20 |
| 21 | - (void)setOnFirstFrameReceived:(void (^ _Nullable)())onFirstFrameReceived; |
| 22 | - (void)internalSetOnOrientationUpdated:(void (^ _Nullable)(int, CGFloat))onOrientationUpdated; |
| 23 | - (void)internalSetOnIsMirroredUpdated:(void (^ _Nullable)(bool))onIsMirroredUpdated; |
| 24 |
| 25 | - (void)onFrameGenerated:(CGSize)size isMirrored:(bool)isMirrored rotation:(int)rotation; |
| 26 |
| 27 | - (AVCaptureVideoPreviewLayer * _Nonnull)previewLayer; |
| 28 |
| 29 | @end |
| 30 |
| 31 | #endif //WEBRTC_IOS |
| 32 |
| 33 | #endif |
| 34 |