@Override
 public void onError(Exception e) {
   Log.d("jdj-ExoPlayer", "Player ERROR " + playerErrors);
   playerErrors++;
   if (playerErrors >= 2) {
     context.onVideoFreeze();
   } else {
     playerNeedsPrepare = true;
     grabAudio();
     launchPlayer(NOW);
   }
 }