Ejemplo n.º 1
0
 public void Restart() {
   if (player != null && !player.getSourceLocation().equals(null)
       || !player.getSourceLocation().equals("")) {
     player.stop();
     player.play();
   }
 }
 /**
  * Initiate playback preparation and wait until playback will start.
  *
  * @throws InterruptedException
  */
 public void playSync() throws InterruptedException {
   play();
   waitForState(PlayerState.PLAYING);
 }