Difficulties help: music player pause () after the start () error
Play Service in music, Pause, after performing mediaPlayer.pause () the music stops, the executive mediaPlayer.start when you want to play again () error, the program has been to determine the method to be run before:
Baidu still not been resolved for a long time, seeking guidance ah!
<-! Baidu Button BEGIN -> more Share to: <-! Baidu Button END ->
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) -> Reply: You can paste the full code Reply: Please use AIDL, you suspend a thread, and another thread started, will certainly be given, if you just write activity on the inside can not go wrong, you can try,,, Reply: Try calling player.start () before calling the next setDataSource () method and prepare () Reply: Recommend a look at this, look at the document in each state to change this thing MediaPlayer each state Reply: To determine the next you start calling, posted the code too. You posted this code can be added to determine the current state of play in the front. Reply:
No comments:
Post a Comment