mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-01-02 03:10:54 +00:00
wip fixing pr comments
This commit is contained in:
@@ -7,12 +7,13 @@ typedef NS_ENUM(NSUInteger, ASVideoGravity) {
|
||||
ASVideoGravityResize
|
||||
};
|
||||
|
||||
@interface ASVideoNode : ASDisplayNode<_ASDisplayLayerDelegate>
|
||||
@interface ASVideoNode : ASControlNode<_ASDisplayLayerDelegate>
|
||||
@property (atomic, strong, readwrite) AVAsset *asset;
|
||||
@property (nonatomic, assign, readwrite) BOOL shouldAutoPlay;
|
||||
@property (nonatomic, assign, readwrite) BOOL shouldAutoplay;
|
||||
@property (atomic) ASVideoGravity gravity;
|
||||
@property (atomic) BOOL autorepeat;
|
||||
@property (atomic) ASButtonNode *playButton;
|
||||
@property (atomic) AVPlayer *player;
|
||||
|
||||
- (void)play;
|
||||
- (void)pause;
|
||||
@@ -22,9 +23,9 @@ typedef NS_ENUM(NSUInteger, ASVideoGravity) {
|
||||
@protocol ASVideoNodeDelegate <NSObject>
|
||||
@end
|
||||
|
||||
@protocol ASVideoNodeDatasource <NSObject>
|
||||
@protocol ASVideoNodeDataSource <NSObject>
|
||||
@optional
|
||||
- (ASDisplayNode *)playButtonForVideoNode:(ASVideoNode *) videoNode;
|
||||
- (ASButtonNode *)playButtonForVideoNode:(ASVideoNode *)videoNode;
|
||||
- (UIImage *)thumbnailForVideoNode:(ASVideoNode *) videoNode;
|
||||
- (NSURL *)thumbnailURLForVideoNode:(ASVideoNode *)videoNode;
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user