mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-14 10:20:11 +00:00
git-subtree-dir: submodules/LegacyComponents git-subtree-mainline: 608630530451e02e5aec48389d144dbf7a3625b9 git-subtree-split: d5594346161c1b7f203d1e87068bbe77bcaac019
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
|