Repo created
This commit is contained in:
parent
81b91f4139
commit
f8c34fa5ee
22732 changed files with 4815320 additions and 2 deletions
|
|
@ -0,0 +1,33 @@
|
|||
#ifndef TGCALLS_VIDEO_CAPTURE_VIEW_H
|
||||
#define TGCALLS_VIDEO_CAPTURE_VIEW_H
|
||||
|
||||
#ifdef WEBRTC_IOS
|
||||
#import <Foundation/Foundation.h>
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
#include <memory>
|
||||
|
||||
@class AVCaptureVideoPreviewLayer;
|
||||
|
||||
@interface VideoCaptureView : UIView
|
||||
|
||||
@property(nonatomic) UIViewContentMode videoContentMode;
|
||||
@property(nonatomic, getter=isEnabled) BOOL enabled;
|
||||
@property(nonatomic, nullable) NSValue* rotationOverride;
|
||||
|
||||
@property (nonatomic, readwrite) int internalOrientation;
|
||||
@property (nonatomic, readwrite) CGFloat internalAspect;
|
||||
|
||||
- (void)setOnFirstFrameReceived:(void (^ _Nullable)())onFirstFrameReceived;
|
||||
- (void)internalSetOnOrientationUpdated:(void (^ _Nullable)(int, CGFloat))onOrientationUpdated;
|
||||
- (void)internalSetOnIsMirroredUpdated:(void (^ _Nullable)(bool))onIsMirroredUpdated;
|
||||
|
||||
- (void)onFrameGenerated:(CGSize)size isMirrored:(bool)isMirrored rotation:(int)rotation;
|
||||
|
||||
- (AVCaptureVideoPreviewLayer * _Nonnull)previewLayer;
|
||||
|
||||
@end
|
||||
|
||||
#endif //WEBRTC_IOS
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue