2015/08/24

Android Mediaplayer error (-19,0)

在onCompletion事件內加入release的方法


mp1.setOnCompletionListener(new OnCompletionListener() {
    public void onCompletion(MediaPlayer mp) {
        //加入release即可
        mp.release();

    };
});