public void setVolumePercentage(int percentage) {
        if((percentage <= 100) && (percentage >= 0)) {
            mediaPlayer.setVolume(percentage);
        }
        else {
            System.err.println("Cannot supply a volume below 0 or above 100");
        }
    }