コード例 #1
0
 public void onPlaybackEnd() {
   Log.d("jdj-ExoPlayer", "Player END");
   context.onVideoEnd();
   playerState = STATE_STOP;
   loadShutter.setVisibility(View.GONE);
   if (replayEnable) replayShutter.setVisibility(View.VISIBLE);
   // LOOP
   // player.seekTo(0);
 }
コード例 #2
0
 @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);
   }
 }