title: Video View not playing youtube video
body: <p>I am trying to play a youtube video in a Video View. </p>
  
  <p>I have laid out the xml like this:</p>
  
  <pre><code>&lt;VideoView 
              android:id="@+id/VideoView"
              android:layout_height="fill_parent"
              android:layout_width="fill_parent" 
              /&gt;
  </code></pre>
  
  <p>and the code is like this: </p>
  
  <pre><code>setContentView(R.layout.webview);
          VideoView vv = (VideoView) findViewById(R.id.VideoView);                        
          MediaController mc=new MediaController(this);
          mc.setEnabled(true);
          mc.show(0);
          vv.setMediaController(mc); 
          vv.setVideoURI(Uri.parse("http://www.youtube.com/watch?v=XS998HaGk9M"));
          vv.requestFocus();
          vv.showContextMenu();
          vv.start();  
  </code></pre>
  
  <p>I have added the permission within the manifest. When I load the application a dialog appears stating the video cannot be played.</p>
  
  <p>I would appreciate any advice on this. Thanks</p>
  
  <p><img src="https://i.stack.imgur.com/75PgY.jpg" alt="enter image description here"></p>