@@ -73,6 +73,9 @@ typedef enum : NSUInteger {
*/
- (void)playbackStalled;
+/// 可用缓存为空导致
+- (void)stalledByCacheEmtpy;
+
@end
@interface MKRAVPlayer : NSObject
@@ -512,6 +512,9 @@ NSURL * MKRUrlWithString(NSString *string){
NSLog(@"网络状况导致卡顿");
self.state = MKRAVPlayerStateBuffering;
}
+ if (self.delegate && [self.delegate respondsToSelector:@selector(stalledByCacheEmtpy)]) {
+ [self.delegate stalledByCacheEmtpy];
+ }