Code example for MediaPlayer

Methods: isLooping

0
            mediaPlayer.stop();
        mediaPlayer.release();
    } 
 
    public boolean isLooping() { 
        return mediaPlayer.isLooping();
    } 
 
    public boolean isPlaying() { 
        return mediaPlayer.isPlaying();
    } 
 
    public boolean isStopped() { 
        return !isPrepared;
    } 
 
    public void pause() { 
        if (mediaPlayer.isPlaying())
            mediaPlayer.pause();
    }