13

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));
Harsh Patel
  • 657
  • 11
  • 26
Hesam
  • 52,260
  • 74
  • 224
  • 365
  • 1
    Possible duplicate of [Android:video as splash screen](https://stackoverflow.com/questions/5473553/androidvideo-as-splash-screen) – Muz Jun 14 '17 at 03:04

3 Answers3

25

Already answered here

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

Community
  • 1
  • 1
SERPRO
  • 10,015
  • 8
  • 46
  • 63
4

You just have to remove videoView.setMediaController();

Adinia
  • 3,722
  • 5
  • 40
  • 58
Deni Rohimat
  • 162
  • 7
1

Try to hide it by using this

videoView=findViewById(R.id.video_id);

videoView.setOnTouchListener();
King of Masses
  • 18,405
  • 4
  • 60
  • 77