mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-07-23 19:50:47 +00:00
18 lines
512 B
Objective-C
18 lines
512 B
Objective-C
#import <UIKit/UIKit.h>
|
|
|
|
@class AVPlayer;
|
|
@class AVPlayerLayer;
|
|
|
|
@interface TGModernGalleryVideoView : UIView
|
|
|
|
@property (nonatomic, strong) AVPlayer *player;
|
|
@property (nonatomic, readonly) AVPlayerLayer *playerLayer;
|
|
@property (nonatomic, copy) void (^deallocBlock)(void);
|
|
@property (nonatomic, strong) NSString *key;
|
|
|
|
- (instancetype)initWithFrame:(CGRect)frame player:(AVPlayer *)player;
|
|
- (instancetype)initWithFrame:(CGRect)frame player:(AVPlayer *)player key:(NSString *)key;
|
|
- (void)cleanupPlayer;
|
|
|
|
@end
|