Course Content

If you are facing any issue in playing video please use Firefox browser.

Course Content


Android VideoView Class


In today's video of a topic is Android videoview class.

Android videoview class is a visual component which when added to the layout of an activity, provides a surface onto which a video may be played.

Android supports video formats like H.263, H.264 AVC, MPEG-4 SP, VP8.

The android.widget.videoview class has a wide range of methods that may be called in order to manage the playback of video.

Some of the most commonly used methods are as follows,

public void start()

public void pause()

public void resume ()

public void stopPlayback()

public void setVideoURI ()

One of the important method is public void setMediaController(MediaController controller) which sets the media controller to the video view.

Key Methods of MediaController Class are,

setAnchorView(View view), show(), hide(), isShowing, and show(int timeout).


Recommended Courses

Share With Friend

Have a friend to whom you would want to share this course?

Download The Apps

Code Scan or Download the app
Google Play Store
297K+ Downloads
4.5 Rating
10K+ Reviews
  • Learn anywhere on the go
  • Get regular updates about your enrolled or new courses
  • Share content with your friends
  • Evaluate your progress through practice tests
  • No internet connection needed
  • Enroll for the webinar and join at the time of the webinar from anywhere