2020-06-10 01:19:12 +03:00

42 lines
1.2 KiB
Objective-C

#import <LegacyComponents/TGModernGalleryItemView.h>
#import <LegacyComponents/TGModernGalleryEditableItemView.h>
#import <LegacyComponents/TGModernGalleryImageItemImageView.h>
#import <AVFoundation/AVFoundation.h>
@class TGPhotoEntitiesContainerView;
@protocol TGMediaEditableItem;
@interface TGMediaPickerGalleryVideoItemView : TGModernGalleryItemView <TGModernGalleryEditableItemView>
@property (nonatomic, strong) TGModernGalleryImageItemImageView *imageView;
@property (nonatomic, strong) AVPlayer *player;
@property (nonatomic, readonly) bool isPlaying;
@property (nonatomic, readonly) bool hasTrimming;
@property (nonatomic, readonly) CMTimeRange trimRange;
- (void)play;
- (void)stop;
- (void)playIfAvailable;
- (void)setPlayButtonHidden:(bool)hidden animated:(bool)animated;
- (void)toggleSendAsGif;
- (void)setScrubbingPanelApperanceLocked:(bool)locked;
- (void)setScrubbingPanelHidden:(bool)hidden animated:(bool)animated;
- (void)presentScrubbingPanelAfterReload:(bool)afterReload;
- (void)prepareForEditing;
- (void)returnFromEditing;
- (UIImage *)screenImage;
- (UIImage *)transitionImage;
- (CGRect)editorTransitionViewRect;
- (TGPhotoEntitiesContainerView *)entitiesView;
- (id<TGMediaEditableItem>)editableMediaItem;
@end