mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
First working version for HLS streams
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user