private void playNext(){
  if (mediaType == Config.YOUTUBE_MEDIA_TYPE_VIDEO) {
    seekVideo(0);
    restartVideo();
    return;
  }
  if (previousWasCalled) {
    previousWasCalled=false;
    iterator.next();
  }
  if (!iterator.hasNext()) {
    iterator=youTubeVideos.listIterator();
  }
  videoItem=iterator.next();
  nextWasCalled=true;
  playVideo();
}

private void playNext ( ) { if ( mediaType == Config . YOUTUBE_MEDIA_TYPE_VIDEO ) { seekVideo ( 0 ) ; restartVideo ( ) ; return ; } if ( previousWasCalled ) { previousWasCalled = false ; iterator . next ( ) ; } if ( ! iterator . hasNext ( ) ) { iterator = youTubeVideos . listIterator ( ) ; } videoItem = iterator . next ( ) ; nextWasCalled = true ; playVideo ( ) ; }
plays next video in playlist
