文章列表
Android的MediaPlayer使用方法:
private static MediaPlayer mp = null ;
public static void play(Context ctx, Uri uri){
if(mp != null){
mp.stop();
mp.release();
mp = null ;
}
mp = MediaPlayer.create(ActivityDemo.this, FilesUtil.getUri(strArray, indexOf, true));
mp ...