|
@@ -65,6 +65,10 @@ typedef enum : NSUInteger {
|
|
/// @param index 准备播放的资源在播放列表的下标
|
|
/// @param index 准备播放的资源在播放列表的下标
|
|
- (BOOL)willPreparePlayAtIndex:(NSInteger)index;
|
|
- (BOOL)willPreparePlayAtIndex:(NSInteger)index;
|
|
|
|
|
|
|
|
+/// 即将切换播放资源
|
|
|
|
+/// @param resource 即将播放的资源 此方法触发时 currentResource 还是上一个播放的资源
|
|
|
|
+- (void)willChangePlayResouce:(id<MKRRadioResorce>)resource;
|
|
|
|
+
|
|
/**
|
|
/**
|
|
播放完成
|
|
播放完成
|
|
|
|
|
|
@@ -93,6 +97,10 @@ typedef enum : NSUInteger {
|
|
/// 可用缓存为空导致
|
|
/// 可用缓存为空导致
|
|
- (void)stalledByCacheEmtpy;
|
|
- (void)stalledByCacheEmtpy;
|
|
|
|
|
|
|
|
+/// 快进(快退)完成
|
|
|
|
+/// @param duration 快进的时间点
|
|
|
|
+- (void)didSeekAtDuration:(NSInteger)duration;
|
|
|
|
+
|
|
@end
|
|
@end
|
|
|
|
|
|
@interface MKRAVPlayer : NSObject
|
|
@interface MKRAVPlayer : NSObject
|
|
@@ -132,7 +140,7 @@ typedef enum : NSUInteger {
|
|
*/
|
|
*/
|
|
@property (nonatomic, assign) NSInteger currentIndex;
|
|
@property (nonatomic, assign) NSInteger currentIndex;
|
|
|
|
|
|
-@property (nonatomic, assign) id <MKRRadioResorce> currentResource;
|
|
|
|
|
|
+@property (nonatomic, strong) id <MKRRadioResorce> currentResource;
|
|
|
|
|
|
/**
|
|
/**
|
|
是否正在播放中
|
|
是否正在播放中
|
|
@@ -145,6 +153,11 @@ typedef enum : NSUInteger {
|
|
@property (nonatomic, assign) BOOL shouldAutoPlay;
|
|
@property (nonatomic, assign) BOOL shouldAutoPlay;
|
|
|
|
|
|
/**
|
|
/**
|
|
|
|
+ 快进或快退之后是否允许自动播放
|
|
|
|
+ */
|
|
|
|
+@property (nonatomic, assign) BOOL shouldAutoPlayWhenSeekFinish;
|
|
|
|
+
|
|
|
|
+/**
|
|
播放模式
|
|
播放模式
|
|
*/
|
|
*/
|
|
@property (nonatomic, assign) MKRAVPlayerPlayMode playMode;
|
|
@property (nonatomic, assign) MKRAVPlayerPlayMode playMode;
|