Просмотр исходного кода

clean up now playing info center and unsubscribe from remote commands in stopPlayback the internal payers are being cleaned up and remote commands would therefore be executed on nil, thats why we don't want to receive them any longer

Tobias Conradi 10 лет назад
Родитель
Сommit
4cca7d6422
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      Sources/VLCPlaybackController.m

+ 3 - 0
Sources/VLCPlaybackController.m

@@ -384,6 +384,9 @@
 
     if ([self.delegate respondsToSelector:@selector(presentingViewControllerShouldBeClosed:)])
         [self.delegate presentingViewControllerShouldBeClosed:self];
+
+	[MPNowPlayingInfoCenter defaultCenter].nowPlayingInfo = nil;
+	[self unsubscribeFromRemoteCommand];
 }
 
 - (void)_savePlaybackState