Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

False negative playerIsPlaying #5

Open
kmckinley opened this issue Apr 23, 2015 · 1 comment
Open

False negative playerIsPlaying #5

kmckinley opened this issue Apr 23, 2015 · 1 comment

Comments

@kmckinley
Copy link

I'm running in to an issue where I can get the player in a state where it things it is paused but really the audio is playing.

I get into this state by playing a queue, leave the app in the foreground, and then put my phone in sleep mode. Let it play like this for about 5-10 minutes. Wake the phone up and the playerIsPlaying will return NO even though the audio is playing. This is on a iPhone 5s with iOS 8.3. I'll run the same test on other devices and report back the results

The below method in AUMediaPlayer will return 0.0 for self.player.rate

- (BOOL)playerIsPlaying {
    if (self.player.rate > 0.0f && self.player.error == nil) {
        return YES;
    }
    return NO;
}
@kmckinley
Copy link
Author

On an iPod touch (5th generation) iOS 7.0.3 it happens anytime I let the a song play the entire track and then go to the next.
If I manually call playNext it works fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant