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