Example #1
0
 @Override
 public boolean onTouchEvent(MotionEvent event) {
   if (event.getActionMasked() == MotionEvent.ACTION_DOWN) {
     if (controller.isVisible()) {
       controller.hide();
     } else {
       controller.show();
     }
   }
   return true;
 }
Example #2
0
 @Override
 public boolean dispatchKeyEvent(KeyEvent event) {
   return controller.dispatchKeyEvent(event);
 }
Example #3
0
 @Override
 public boolean onTrackballEvent(MotionEvent ev) {
   controller.show();
   return true;
 }
Example #4
0
 @Override
 protected void setPlayer(SimpleExoPlayer player) {
   super.setPlayer(player);
   controller.setPlayer(player);
 }