瀏覽代碼

版本升级维护

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;
     }
 }