@protocol JWPlaylistItemDelegate <NSObject>
Defines methods for a delegate which responds to events related to a JWPlaylistItem.
Fires during playlist item transitions. The transition will be paused until the completion block is called.
The completion block produce 3 outcomes:
- set decision to JWPlaylistItemDecisionContinue to proceed with the playlist item’s load. You may call the block with a null newPlaylistItem.
- set decision to JWPlaylistItemDecisionModify to load a different item or a modified version of the playlist item. You must call the completion block with an instance of JWPlaylistItem.
- set decision to JWPlaylistItemDecisionSkip to reject this playlist item and proceed to the following one. You may call the block with a null newPlaylistItem.
Only fires the first time the playlist item is requested. If the playlist item is replayed, the previous decision will apply. To reset, set the playlistItemDelegate again.
The upcoming playlist item.
The index of the upcoming playlist item.
Call this block when you are ready to proceed with the playlist item load.