java.io.IOException: Prepare failed.: status=0x1 异常解决方法

出现上述问题的解决办法:

File file = new File(strPath);
FileInputStream fis = new FileInputStream(file);
mediaPlayer.setDataSource(fis.getFD());
mp.prepare();

猜你喜欢

转载自blog.csdn.net/lpCrazyBoy/article/details/82906233