Answer the question
In order to leave comments, you need to log in
Why does playbackState always return 0 (iOs+html5+phonegap)?
I am writing on phonegap (implemented through a plugin), I need to implement a poll for audio playback buttons for iOs in a locked mode.
I'm trying to get the statuses of MPMusicPlayerController:
MPMusicPlaybackState playbackState = [[MPMusicPlayerController applicationMusicPlayer] playbackState];
if (playbackState == MPMusicPlaybackStateStopped || playbackState == MPMusicPlaybackStatePaused) {
// код если остановлен
} else if (playbackState == MPMusicPlaybackStatePlaying) {
// код если играет
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question