cordova-music-controls-plugin icon indicating copy to clipboard operation
cordova-music-controls-plugin copied to clipboard

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

Open TylerAHolden opened this issue 6 years ago • 1 comments

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?

TylerAHolden avatar Sep 26 '18 03:09 TylerAHolden

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.

ArkeshGKalathiya avatar Jan 21 '19 16:01 ArkeshGKalathiya