How to hide the controls in the VideoView in Android?

Karthik picture Karthik · Mar 12, 2012 · Viewed 27.4k times · Source

I am using VideoView for playing video in my app but I would like to hide the controls in it. How can I do that? Thanks.

Answer

Sadeshkumar Periyasamy picture Sadeshkumar Periyasamy · Mar 12, 2012

For hiding the Controls in the VideoView, we can set null to MediaController property.

The Code snippet is as below :

videoView.setMediaController(null)