title: Play a mp4 file in android videoview
body: <p>I am trying to play a mp4 videoin my simple android VideoView. Here is my code</p>
  
  <pre><code>VideoView videoView;
  videoView = (VideoView) findViewById(R.id.videoViewa);
  MediaController mediaController = new MediaController(this);
  mediaController.setAnchorView(videoView);
  //URI either from net
  Uri video = Uri.parse("http://www.fieldandrurallife.tv/videos/Benltey%20Mulsanne.mp4");
  videoView.setMediaController(mediaController);
  videoView.setVideoURI(video);
  videoView.start();
  </code></pre>
  
  <p>my layout looks like</p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:paddingBottom="@dimen/activity_vertical_margin"
      android:paddingLeft="@dimen/activity_horizontal_margin"
      android:paddingRight="@dimen/activity_horizontal_margin"
      android:paddingTop="@dimen/activity_vertical_margin"
      tools:context=".MainActivity" &gt;
  
      &lt;TextView
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="@string/hello_world" /&gt;
  
  &lt;VideoView
      android:id="@+id/videoViewa"
      android:layout_width="match_parent"
      android:layout_gravity="center"
      android:layout_height="match_parent" /&gt;
  
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>Manifest looks like</p>
  
  <pre><code>    android:targetSdkVersion="18" /&gt;
  
  &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
  </code></pre>
  
  <p>I am getting the following error when I trying to launch application</p>
  
  <pre><code>Couldn't open file on client side, trying server side
  error (1, -1004)
  </code></pre>
  
  <p>Has anyone faced the same ?</p>
  
  <p>Please help
  Thanks in advance</p>