Skip to content

Commit

Permalink
Revert "Fixed player instance deprecating." related #90
Browse files Browse the repository at this point in the history
This reverts commit 3ac0f57.
  • Loading branch information
saiday committed Aug 29, 2015
1 parent 88492ef commit 79eb6b3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions HysteriaPlayer/HysteriaPlayer.m
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,6 @@ - (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];
Expand Down Expand Up @@ -856,4 +855,4 @@ - (void)addDelegate:(id<HysteriaPlayerDelegate>)delegate{}

- (void)removeDelegate:(id<HysteriaPlayerDelegate>)delegate{}

@end
@end

0 comments on commit 79eb6b3

Please sign in to comment.