First working version for HLS streams

This commit is contained in:
Gareth Reese
2016-03-01 12:08:09 +00:00
parent 75f615b223
commit f9c8c043a1
3 changed files with 74 additions and 12 deletions

View File

@@ -15,7 +15,7 @@
// in an issue on GitHub: https://github.com/facebook/AsyncDisplayKit/issues
@interface ASVideoNode : ASControlNode
@property (atomic, strong, readwrite) AVAsset *asset;
@property (atomic, strong, readonly) AVAsset *asset;
@property (atomic, strong, readonly) AVPlayer *player;
@property (atomic, strong, readonly) AVPlayerItem *currentItem;
@@ -31,6 +31,10 @@
@property (atomic, weak, readwrite) id<ASVideoNodeDelegate> delegate;
// Mirror the construction of AVPlayerItem with the URL or AVAsset
- (instancetype)initWithURL:(NSURL*)url;
- (instancetype)initWithAsset:(AVAsset*)asset;
- (void)play;
- (void)pause;