MediaPlayer isPlaying() always returning false

后端 未结 2 1313
不思量自难忘°
不思量自难忘° 2021-01-14 15:30

I am testing on 2 phones. In one device isPlaying() of mediaplayer always return false even when it is playing. but in other device (lg optimus gingerbread) isPlaying() retu

2条回答
  •  既然无缘
    2021-01-14 16:09

    Also, while we're on the general MediaPlayer subject, note that isPlaying() can cause an ANR when called on the UI thread. In fact, Google recommends executing all MediaPlayer calls from a background handler thread. Which will also serialize execution of MediaPlayer calls.

提交回复
热议问题