فهرست منبع

版本升级维护

yyqxiaoyin 5 سال پیش
والد
کامیت
1f4cc278ed
1فایلهای تغییر یافته به همراه1 افزوده شده و 2 حذف شده
  1. 1 2
      MKRRadioManager/Classes/MKRRadioManager/MKRAVPlayer/MKRAVPlayer.m

+ 1 - 2
MKRRadioManager/Classes/MKRRadioManager/MKRAVPlayer/MKRAVPlayer.m

@@ -392,12 +392,11 @@ NSURL * MKRUrlWithString(NSString *string){
             return;
         }
         [self resetPlayer];
-        self.currentTime = 0;
-        self.totalTime = 0;
         self.currentIndex = nextIndex;
         self.currentStatus = nil;
         NSString *url = [self.playList objectAtIndex:self.currentIndex];
         self.playUrl = MKRUrlWithString(url);
+        self.state = MKRAVPlayerStateStopped;
     }
 }