Android用mediaPlayer.prepare()报错
作者:互联网
如有错误欢迎指正
Caused by: java.lang.IllegalStateException
at android.media.MediaPlayer._prepare(Native Method)
at android.media.MediaPlayer.prepare(MediaPlayer.java:1274)
注意mediaplayer的状态,在prepare前加了一句reset,报错的情况减少了很多
标签:java,prepare,mediaPlayer,media,MediaPlayer,报错,Android,android 来源: https://blog.csdn.net/m0_59834108/article/details/121427653