You can apply magic-using ExoPlayerView
playerView.setControllerVisibilityListener(new
PlaybackControlView.VisibilityListener() {
@Override
public void onVisibilityChange(int i) {
// Using Activity
if (getActionBar() != null)
if (i == 0) {
// code for show
} else{
// code for hide
}
}
});