diff --git a/HysteriaPlayer/HysteriaPlayer.m b/HysteriaPlayer/HysteriaPlayer.m index 127ca4c..bba3e73 100644 --- a/HysteriaPlayer/HysteriaPlayer.m +++ b/HysteriaPlayer/HysteriaPlayer.m @@ -811,6 +811,7 @@ - (void)deprecatePlayer { NSError *error; tookAudioFocus = NO; + [[AVAudioSession sharedInstance] setCategory:nil error:&error]; [[AVAudioSession sharedInstance] setActive:NO error:&error]; [[UIApplication sharedApplication] endReceivingRemoteControlEvents]; [[NSNotificationCenter defaultCenter]removeObserver:self name:AVPlayerItemDidPlayToEndTimeNotification object:nil]; @@ -855,4 +856,4 @@ - (void)addDelegate:(id)delegate{} - (void)removeDelegate:(id)delegate{} -@end \ No newline at end of file +@end