BetterVideoPlayer icon indicating copy to clipboard operation
BetterVideoPlayer copied to clipboard

Show controls doesn't work.

Open ajaystha005 opened this issue 8 years ago • 3 comments

I am trying to show controls on start of the video. But it automatically hides. Is there is any fix around? mPlayer.showControls();

-###### Include the following:

    • Better Video Player version: 1.1.0
    • Device OS version: 7.0
    • Device Manufacturer: Huawei
    • Device Name: Nexus 6P

ajaystha005 avatar Jul 26 '17 08:07 ajaystha005

try mPlayer.setHideControlsOnPlay(false); By default, video player hides controls after play. This method changes that behavior. It is also available by xml.

halilozercan avatar Jul 26 '17 15:07 halilozercan

I tried that. that doesn't work. the Controls still are hidden. Need to touch to show :(

ajaystha005 avatar Jul 26 '17 20:07 ajaystha005

private void setUpPlayer() { mPlayer = mBinding.player; mPlayer.setCallback(this); mPlayer.setHideControlsOnPlay(false); mPlayer.setAutoPlay(true); } @Override public void playVideo(Uri url) { mPlayer.setSource(url); }

ajaystha005 avatar Jul 26 '17 20:07 ajaystha005