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;
        } 
    } 
 
    public void startVideo() {