how to Play Video from URL in android
<p>I wrote code for play video from URL. But i getting UNABLE TO PLAY VIDEO message. please anyone help me</p>

<pre><code>public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        VideoView videoView = (VideoView) findViewById(R.id.video);
        MediaController mc = new MediaController(this);
        mc.setAnchorView(videoView);
        mc.setMediaPlayer(videoView);
        Uri video = Uri.parse("http://www.youtube.com/watch?v=qvtCk1wZ7LM&amp;feature=player_detailpage");
        videoView.setMediaController(mc);
        videoView.setVideoURI(video);
        videoView.start();

    }


 &lt;VideoView
 android:layout_width="match_parent" 
            android:layout_height="wrap_content" 
            android:id="@+id/video"&gt;&lt;/VideoView&gt;
</code></pre>
