updateIsPlaying won't work and ios controls continuously pops up as "playing"
TylerAHolden opened this issue · 1 comments
TylerAHolden commented
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 commented
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.