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

updateIsPlaying won't work and ios controls continuously pops up as "playing" #141

Open
TylerAHolden opened this issue Sep 26, 2018 · 1 comment

Comments

@TylerAHolden
Copy link

updateIsPlaying method does not work. The music controls on ios 11 lock screen continues to pop up as "playing" (with the pause button shown as if the music is still playing). Anyone else encountering this issue?

@ArkeshGKalathiya
Copy link

Hi I have kind of solved issue, but I don't have much knowledge of functionality, I have just added patch. Please check it before you use it.

if(![musicControlsInfo isPlaying]){ nowPlayingCenter.playbackState = MPMusicPlaybackStatePaused; }else{ nowPlayingCenter.playbackState = MPMusicPlaybackStatePlaying; }

Please add above lines in updateIsPlaying function in musiccontrols.m file.

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

2 participants