1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-03 09:57:46 +01:00
Telegram/thirdparty/PGPhotoEditor/PGCameraMovieWriter.h
2015-10-01 19:19:52 +03:00

22 lines
757 B
Objective-C

#import <AVFoundation/AVFoundation.h>
@interface PGCameraMovieWriter : NSObject
@property (nonatomic, copy) void(^finishedWithMovieAtURL)(NSURL *url, CGAffineTransform transform, CGSize dimensions, NSTimeInterval duration, bool success);
@property (nonatomic, readonly) NSTimeInterval currentDuration;
@property (nonatomic, readonly) bool isRecording;
- (instancetype)initWithVideoTransform:(CGAffineTransform)videoTransform
videoOutputSettings:(NSDictionary *)videoSettings
audioOutputSettings:(NSDictionary *)audioSettings;
- (void)startRecording;
- (void)stopRecordingWithCompletion:(void (^)(void))completion;
- (void)_processSampleBuffer:(CMSampleBufferRef)sampleBuffer;
+ (NSString *)outputFileType;
@end