how to play video from url

It has something to do with your link and content. Try the following two links:

    String path="http://www.ted.com/talks/download/video/8584/talk/761";
    String path1="http://commonsware.com/misc/test2.3gp";

    Uri uri=Uri.parse(path1);

    VideoView video=(VideoView)findViewById(R.id.VideoView01);
    video.setVideoURI(uri);
    video.start();

Start with “path1”, it is a small light weight video stream and then try the “path”, it is a higher resolution than “path1”, a perfect high resolution for the mobile phone.

Leave a Comment