private void playFirstInQueue(){
  AudioQueueItem queueItem=mAudioQueue.poll();
  try {
    mMediaPlayer.setDataSource(this,queueItem.mUri);
  }
 catch (  IOException e) {
    e.printStackTrace();
    endPlayback();
    return;
  }
  mMediaPlayer.setOnCompletionListener(queueItem.mListener);
  try {
    mMediaPlayer.prepare();
  }
 catch (  IOException e) {
    e.printStackTrace();
    endPlayback();
    return;
  }
  mMediaPlayer.start();
}

private void playFirstInQueue ( ) { AudioQueueItem queueItem = mAudioQueue . poll ( ) ; try { mMediaPlayer . setDataSource ( this , queueItem . mUri ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; endPlayback ( ) ; return ; } mMediaPlayer . setOnCompletionListener ( queueItem . mListener ) ; try { mMediaPlayer . prepare ( ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; endPlayback ( ) ; return ; } mMediaPlayer . start ( ) ; }
play the first item in the audio queue .
