Domanda

I'm making an app that starts with a splash screen. It includes a videoview, but when the app starts there is a black square until it loads the video. I tried to set a background to the videoview (same as the activity has - blue), but at this case the background hides the video. How could I solve this?

Thanks in advance.

È stato utile?

Soluzione

One recommendation would be to put a starting image(or a blank image/color) and them set

videoView.setOnPreparedListener 

to hide that image once the video is ready.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top