title: How to Play HD Youtube Video
body: <p>If I apply this code error shows Can't play this video How I can play this video</p>
  
  <pre><code>   @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
      VideoView videoView =(VideoView)findViewById(R.id.videoView);
      MediaController mediaController= new MediaController(this);
      mediaController.setAnchorView(videoView);
      Uri uri= Uri.parse("https://www.youtube.com/watch?v=PdrTQmsxzpU");
      videoView.setMediaController(mediaController);
      videoView.setVideoURI(uri);
      videoView.requestFocus();
      videoView.start();
  }
  </code></pre>
  
  <p><strong>Error</strong></p>
  
  <pre><code>mTotalSize is -1
   setReadTimeOut =  30000ms
  message received msg=100, ext1=1, ext2=-2147483648
  05-02 15:43:21.686 426-439/com.example.muhammad.youtubeproject E/MediaPlayer: error (1, -2147483648)
  
  V/MediaPlayer: back from callback
   Error (1,-2147483648)
  Error: 1,-2147483648
  </code></pre>