public void play() {
        try {
            player.play();
            for (MusicPlayerListener listener : listeners) {
                listener.lengthChanged(player.getLength());
            }
        } catch (BasicPlayerException ex) {
            Logger.getLogger(MusicPlayer.class.getName()).log(Level.SEVERE, null, ex);
        }
    }