Code example for MediaPlayer

Methods: isPlayingpause

0
        } 
    } 
 
    public void pauseAudio() { 
        if ((mAudioPlayer != null) && mIsPrepared) {
            if (mAudioPlayer.isPlaying()) {
                mAudioPlayer.pause();
            } 
        } 
        mStartWhenPrepared = false;
    } 
 
    public void seekAudio(int seekTo) {
        if ((mAudioPlayer != null) && mIsPrepared) {
            mAudioPlayer.seekTo(seekTo);
        } else { 
            mSeekWhenPrepared = seekTo;
        } 
    } 
 
Stop searching for code, let great code find you!  Add Codota to your java IDE