// Stops the music from playing
 public void pause() {
   try {
     player.stop();
   } catch (Exception e) {
     e.printStackTrace();
   }
 }
 // Stops the track, resets it to the beginning
 public void rewind() {
   player.stop();
   player.setMediaTime(Player.RESET);
 }