Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android, how can I remove controls of VideoView?

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));
like image 651
Hesam Avatar asked Oct 28 '11 09:10

Hesam


2 Answers

You just have to remove videoView.setMediaController();

like image 68
Deni Rohimat Avatar answered Oct 04 '22 22:10

Deni Rohimat


Already answered here

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

like image 44
SERPRO Avatar answered Oct 04 '22 21:10

SERPRO