title: how to play video from url
body: <p>I am beginner in android development and try to play video from link. But it's giving error <code>"sorry,we can't play this video"</code>. I tried so many links but for all links its show same error.</p>
  
  <p>My code is the following </p>
  
  <pre><code>public class VideoDemo extends Activity {
  
          private static final String path ="http://demo.digi-corp.com/S2LWebservice/Resources/SampleVideo.mp4";
   private VideoView video;
   private MediaController ctlr;
   @Override
   public void onCreate(Bundle icicle) {
              super.onCreate(icicle);
              getWindow().setFormat(PixelFormat.TRANSLUCENT);
              setContentView(R.layout.videoview);
  
              video = (VideoView) findViewById(R.id.video);
              video.setVideoPath(path);
  
              ctlr = new MediaController(this);
              ctlr.setMediaPlayer(video);
              video.setMediaController(ctlr);
              video.requestFocus();
       }
  }
  </code></pre>
  
  <hr>
  
  <p>Logcat shows following error message:</p>
  
  <pre><code>04-12 15:04:54.245: ERROR/PlayerDriver(554): HandleErrorEvent: PVMFErrTimeout
  </code></pre>