Skip to content

2.1.0

Compare
Choose a tag to compare
@saiday saiday released this 16 Apr 13:44
· 89 commits to master since this release

Version 2.1.0

  1. Add HysteriaPlayerDataSource delegate.
@protocol HysteriaPlayerDataSource <NSObject>

@optional
- (NSUInteger)hysteriaPlayerNumberOfItems;
- (NSURL *)hysteriaPlayerURLForItemAtIndex:(NSUInteger)index preBuffer:(BOOL)preBuffer;
- (void)hysteriaPlayerAsyncSetUrlForItemAtIndex:(NSUInteger)index preBuffer:(BOOL)preBuffer;

@end
  1. deprecate methods:
- (void)setupSourceGetter:(SourceSyncGetter)itemBlock ItemsCount:(NSUInteger) count;
- (void)asyncSetupSourceGetter:(SourceAsyncGetter)asyncBlock ItemsCount:(NSUInteger)count;
- (void)setItemsCount:(NSUInteger)count;
- (void)registerHandlerReadyToPlay:(ReadyToPlay)readyToPlay;
- (void)registerHandlerFailed:(Failed)failed;
  1. Rename Order to Index
    from
    - (void)setupPlayerItemWithUrl:(NSURL *)url Order:(NSUInteger)index;
    to
    - (void)setupPlayerItemWithUrl:(NSURL *)url index:(NSUInteger)index;
  2. deprecate add, remove delegates method
- (void)addDelegate:(id<HysteriaPlayerDelegate>)delegate;
- (void)removeDelegate:(id<HysteriaPlayerDelegate>)delegate;
  1. rename showErrorMessages to popAlertWhenError
  2. add - (void)hysteriaPlayerWillChangedAtIndex:(NSUInteger)index; in HysteriaPlayerDelegate