コード例 #1
0
 /**
  * Initiates playback stop and wait util it stops.
  *
  * @throws InterruptedException
  */
 public void stopSync() throws InterruptedException {
   stop();
   waitForState(PlayerState.STOPPED);
 }
コード例 #2
0
 /**
  * Requests pause and wait until playback pauses.
  *
  * @throws InterruptedException
  */
 public void pauseSync() throws InterruptedException {
   pause();
   waitForState(PlayerState.PAUSED);
 }
コード例 #3
0
 /**
  * Initiate playback preparation and wait until playback will start.
  *
  * @throws InterruptedException
  */
 public void playSync() throws InterruptedException {
   play();
   waitForState(PlayerState.PLAYING);
 }