1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-12 09:29:55 +01:00
Telegram/Telegraph/TGMediaPickerGalleryVideoItem.h

20 lines
887 B
C
Raw Normal View History

2015-10-01 18:19:52 +02:00
#import "TGMediaPickerGalleryItem.h"
#import "TGModernGallerySelectableItem.h"
#import "TGModernGalleryEditableItem.h"
#import <AVFoundation/AVFoundation.h>
@protocol TGMediaEditAdjustments;
@interface TGMediaPickerGalleryVideoItem : TGMediaPickerGalleryItem <TGModernGallerySelectableItem, TGModernGalleryEditableItem>
@property (nonatomic, readonly) AVURLAsset *avAsset;
@property (nonatomic, readonly) CGSize dimensions;
@property (nonatomic, readonly) NSTimeInterval duration;
@property (nonatomic, copy) void (^updateAdjustments)(id<TGEditablePhotoItem> editableMediaItem, id<TGMediaEditAdjustments> adjustments);
@property (nonatomic, copy) void (^updateThumbnail)(id<TGEditablePhotoItem> editableMediaItem, UIImage *screenImage, UIImage *thumbnailImage);
- (instancetype)initWithFileURL:(NSURL *)fileURL dimensions:(CGSize)dimensions duration:(NSTimeInterval)duration;
@end