Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I make the Exoplayer controls always visible?

A few seconds after the ExoPlayer starts playing, the controls stop showing and a black background appears. How do I make sure that the controls are always visible?

like image 274
OVERFLOW Avatar asked Nov 19 '17 18:11

OVERFLOW


People also ask

How do I get ExoPlayer thumbnails on Android?

Add ImageView and Exoplayer in Framelayout. Show Image (That is knows as thumbnails) in imageView and on tap of ImageView Hide it and show ExoPlayer and play it.


2 Answers

Set show_timeout attribute to 0

like image 170
John O'Reilly Avatar answered Sep 24 '22 17:09

John O'Reilly


You can do it programmatically using these,

    PlayerView.setControllerShowTimeoutMs(0);
    PlayerView.setControllerHideOnTouch(false);
like image 23
Isuru Bandara Avatar answered Sep 21 '22 17:09

Isuru Bandara