prototype

Added duration detection in ASVideoNode.
This commit is contained in:
Erekle
2016-05-06 21:41:54 +04:00
parent e87fd7a998
commit c46547ac5f
3 changed files with 212 additions and 22 deletions

View File

@@ -39,6 +39,8 @@ NS_ASSUME_NONNULL_BEGIN
@property (nullable, atomic, strong, readonly) AVPlayer *player;
@property (nullable, atomic, strong, readonly) AVPlayerItem *currentItem;
@property (nonatomic,assign,readonly) CGFloat duration;
/**
* When shouldAutoplay is set to true, a video node will play when it has both loaded and entered the "visible" interfaceState.
* If it leaves the visible interfaceState it will pause but will resume once it has returned.