yyqxiaoyin преди 5 години
родител
ревизия
e1f2a04d01
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      MKRRadioManager/Classes/MKRRadioManager/MKRAVPlayer/MKRAVPlayer.m

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

@@ -272,6 +272,7 @@ NSURL * MKRUrlWithString(NSString *string){
     [self.player pause];
     [self removeNotification];
     [self removePlayerKVO];
+    self.state = MKRAVPlayerStateStopped;
     [[NSNotificationCenter defaultCenter] removeObserver:self
                                                     name:nil
                                                   object:_playerItem];