wip fixing pr comments

This commit is contained in:
Luke Parham
2015-12-22 02:15:25 -06:00
parent c69e18bc6e
commit 4602e4e9eb
7 changed files with 117 additions and 43 deletions

View File

@@ -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