Android, how can I remove controls of VideoView?

Hesam picture Hesam · Oct 28, 2011 · Viewed 13.4k times · Source

In my project I have a Video View that I put it in splash screen. Everything is OK and I can see it in splash screen but the problem is when it shows, control bar (back, next, time length) will show as well that I want see it. How can I disable it?

In the sample code (that I got my idea), it had

mVideoView.requestFocus();

that I removed it but still I think it has focus and because of this it shows control bar. Am I right? How can I prevent and don't let to show?

update: This is my code:

mVideoView = (VideoView) findViewById(R.id.splash_video);
mVideoView.setVideoURI(Uri.parse("android.resource://com.infindo.motogp/raw/sp"));
mVideoView.setMediaController(new MediaController(this));

Answer

SERPRO picture SERPRO · Oct 28, 2011

Already answered here

Just remove setMediaController. If you don't have it, paste your code so we can see what could be the problem.