Jelajahi Sumber

版本升级维护

yyqxiaoyin 5 tahun lalu
induk
melakukan
a599a91088

+ 3 - 0
MKRRadioManager/Classes/MKRRadioManager/MKRAVPlayer/MKRAVPlayer.h

@@ -73,6 +73,9 @@ typedef enum : NSUInteger {
  */
 - (void)playbackStalled;
 
+/// 可用缓存为空导致
+- (void)stalledByCacheEmtpy;
+
 @end
 
 @interface MKRAVPlayer : NSObject

+ 3 - 0
MKRRadioManager/Classes/MKRRadioManager/MKRAVPlayer/MKRAVPlayer.m

@@ -512,6 +512,9 @@ NSURL * MKRUrlWithString(NSString *string){
             NSLog(@"网络状况导致卡顿");
             self.state = MKRAVPlayerStateBuffering;
         }
+        if (self.delegate && [self.delegate respondsToSelector:@selector(stalledByCacheEmtpy)]) {
+            [self.delegate stalledByCacheEmtpy];
+        }
     }
 }