Android Play Video From URL Using VideoView Example

Here you will learn how to play video from url in android using videoview.

We can using VideoView widget to play offline video as well as video from url.

In below example I have displayed a progress dialog until the video is buffering.

Also Read: Picasso Android Tutorial – Load Image from URL

Android Play Video From URL Using VideoView Example

Create an android studio project with package name com.videoview

Add internet access permission in AndroidManifest.xml file.

Now add following code in respective files.

activity_main.xml

MainActivity.java

Save and run the project.

 

Screenshot

Android Play Video From URL Using VideoView Example

Leave a Comment

Your email address will not be published. Required fields are marked *