|
|
|
|
@ -282,6 +282,7 @@ public class VodController extends BaseController { |
|
|
|
|
updatePlayerCfgView(); |
|
|
|
|
listener.updatePlayerCfg(); |
|
|
|
|
listener.replay(false); |
|
|
|
|
view.requestFocus(); |
|
|
|
|
// hideBottom();
|
|
|
|
|
} catch (JSONException e) { |
|
|
|
|
e.printStackTrace(); |
|
|
|
|
@ -310,7 +311,8 @@ public class VodController extends BaseController { |
|
|
|
|
updatePlayerCfgView(); |
|
|
|
|
listener.updatePlayerCfg(); |
|
|
|
|
listener.replay(false); |
|
|
|
|
hideBottom(); |
|
|
|
|
view.requestFocus(); |
|
|
|
|
// hideBottom();
|
|
|
|
|
} catch (JSONException e) { |
|
|
|
|
e.printStackTrace(); |
|
|
|
|
} |
|
|
|
|
@ -586,13 +588,16 @@ public class VodController extends BaseController { |
|
|
|
|
if (super.onKeyEvent(event)) { |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
int keyCode = event.getKeyCode(); |
|
|
|
|
int action = event.getAction(); |
|
|
|
|
if (isBottomVisible()) { |
|
|
|
|
myHandle.postDelayed(myRunnable, myHandleSeconds); |
|
|
|
|
if (keyCode == KeyEvent.KEYCODE_DPAD_UP ) { |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
return super.dispatchKeyEvent(event); |
|
|
|
|
} |
|
|
|
|
boolean isInPlayback = isInPlaybackState(); |
|
|
|
|
int keyCode = event.getKeyCode(); |
|
|
|
|
int action = event.getAction(); |
|
|
|
|
if (action == KeyEvent.ACTION_DOWN) { |
|
|
|
|
if (keyCode == KeyEvent.KEYCODE_DPAD_RIGHT || keyCode == KeyEvent.KEYCODE_DPAD_LEFT) { |
|
|
|
|
if (isInPlayback) { |
|
|
|
|
@ -604,8 +609,8 @@ public class VodController extends BaseController { |
|
|
|
|
togglePlay(); |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
// } else if (keyCode == KeyEvent.KEYCODE_DPAD_UP) { // 闲置开启计时关闭透明底栏
|
|
|
|
|
} else if (keyCode == KeyEvent.KEYCODE_DPAD_DOWN || keyCode == KeyEvent.KEYCODE_DPAD_UP) { |
|
|
|
|
// } else if (keyCode == KeyEvent.KEYCODE_DPAD_UP) { return true;// 闲置开启计时关闭透明底栏
|
|
|
|
|
} else if (keyCode == KeyEvent.KEYCODE_DPAD_DOWN || keyCode == KeyEvent.KEYCODE_DPAD_UP || keyCode== KeyEvent.KEYCODE_MENU) { |
|
|
|
|
if (!isBottomVisible()) { |
|
|
|
|
showBottom(); |
|
|
|
|
myHandle.postDelayed(myRunnable, myHandleSeconds); |
|
|
|
|
|