Skip to content

False negative playerIsPlaying #5

Description

@kmckinley

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;
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions