title: Media player using YouTube?
body: <p>I am developing a sample application using <code>MediaPlayer</code>.By using the raw resources folder,the video can be played.But I want to play through <code>URL</code>.How can I achieve this?</p>
  <h3>My code is:</h3>
  <pre><code>VideoView videoView = (VideoView) findViewById(R.id.VideoView);
          MediaController mediaController = new MediaController(this);
          mediaController.setAnchorView(videoView);
          // Set video link (mp4 format )
          Uri video = Uri.parse(&quot;http://www.youtube.com/watch?v=T1Wgp3mLa_E&quot;);
          videoView.setMediaController(mediaController);
          videoView.setVideoURI(video);
          videoView.start();
  </code></pre>