ASVideoNodeDelegate Protocol Reference
Conforms to | ASNetworkImageNodeDelegate |
---|---|
Declared in | ASVideoNode.h |
– videoDidPlayToEnd:
Delegate method invoked when the node’s video has played to its end time.
- (void)videoDidPlayToEnd:(ASVideoNode *)videoNode
Parameters
videoNode |
The video node has played to its end time. |
---|
Declared In
ASVideoNode.h
– didTapVideoNode:
Delegate method invoked the node is tapped.
- (void)didTapVideoNode:(ASVideoNode *)videoNode
Parameters
videoNode |
The video node that was tapped. |
---|
Discussion
The video’s play state is toggled if this method is not implemented.
Declared In
ASVideoNode.h
– videoNode:willChangePlayerState:toState:
Delegate method invoked when player changes state.
- (void)videoNode:(ASVideoNode *)videoNode willChangePlayerState:(ASVideoNodePlayerState)state toState:(ASVideoNodePlayerState)toState
Parameters
videoNode |
The video node. |
---|---|
state |
player state before this change. |
toState |
player new state. |
Discussion
This method is called after each state change
Declared In
ASVideoNode.h
– videoNode:shouldChangePlayerStateTo:
Ssks delegate if state change is allowed ASVideoNodePlayerStatePlaying or ASVideoNodePlayerStatePaused. asks delegate if state change is allowed.
- (BOOL)videoNode:(ASVideoNode *)videoNode shouldChangePlayerStateTo:(ASVideoNodePlayerState)state
Parameters
videoNode |
The video node. |
---|---|
state |
player state that is going to be set. |
Discussion
Delegate method invoked when player changes it’s state to ASVideoNodePlayerStatePlaying or ASVideoNodePlayerStatePaused and asks delegate if state change is valid
Declared In
ASVideoNode.h
– videoNode:didPlayToTimeInterval:
Delegate method invoked when player playback time is updated.
- (void)videoNode:(ASVideoNode *)videoNode didPlayToTimeInterval:(NSTimeInterval)timeInterval
Parameters
videoNode |
The video node. |
---|---|
second |
current playback time in seconds. |
Declared In
ASVideoNode.h
– videoNode:didStallAtTimeInterval:
Delegate method invoked when the video player stalls.
- (void)videoNode:(ASVideoNode *)videoNode didStallAtTimeInterval:(NSTimeInterval)timeInterval
Parameters
videoNode |
The video node that has experienced the stall |
---|---|
second |
Current playback time when the stall happens |
Declared In
ASVideoNode.h
– videoNodeDidStartInitialLoading:
Delegate method invoked when the video player starts the inital asset loading
- (void)videoNodeDidStartInitialLoading:(ASVideoNode *)videoNode
Parameters
videoNode |
The videoNode |
---|
Declared In
ASVideoNode.h
– videoNodeDidFinishInitialLoading:
Delegate method invoked when the video is done loading the asset and can start the playback
- (void)videoNodeDidFinishInitialLoading:(ASVideoNode *)videoNode
Parameters
videoNode |
The videoNode |
---|
Declared In
ASVideoNode.h
– videoNode:didSetCurrentItem:
Delegate method invoked when the AVPlayerItem for the asset has been set up and can be accessed throught currentItem.
- (void)videoNode:(ASVideoNode *)videoNode didSetCurrentItem:(AVPlayerItem *)currentItem
Parameters
videoNode |
The videoNode. |
---|---|
currentItem |
The AVPlayerItem that was constructed from the asset. |
Declared In
ASVideoNode.h
– videoNodeDidRecoverFromStall:
Delegate method invoked when the video node has recovered from the stall
- (void)videoNodeDidRecoverFromStall:(ASVideoNode *)videoNode
Parameters
videoNode |
The videoNode |
---|
Declared In
ASVideoNode.h