MediaPlayer play mp4 from server
<p>I have some mp4 files on a server and I need to play with the app.
here is my code :</p>

<pre><code>@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.watch);  
    VideoView videoView = (VideoView) findViewById(R.id.videoView1);
    MediaController mediaController = new MediaController(this);
    mediaController.setAnchorView(videoView);
    Uri video = Uri.parse("http://php page that return the mp4");
    videoView.setMediaController(mediaController);
    videoView.setVideoURI(video);
    videoView.start();
}
</code></pre>

<p>I tried the code on a real phone 2.3.5 LogCat:</p>

<pre><code>07-10 19:33:26.409: D/MediaPlayer(1432): Couldn't open file on client side, trying server side
07-10 19:33:26.479: D/VideoView(1432): onMeasure()
07-10 19:33:26.479: I/VideoView(1432):     Setting size: 320x202
07-10 19:33:33.379: D/VideoView(1432): onMeasure()
07-10 19:33:33.379: I/VideoView(1432):     Setting size: 320x180
07-10 19:33:33.419: I/VideoView(1432): start()
07-10 19:33:33.469: E/MediaPlayer(1432): error (1, -2147483648)
07-10 19:33:33.479: E/MediaPlayer(1432): Error (1,-2147483648)
07-10 19:33:33.489: D/VideoView(1432): Error: 1,-2147483648
07-10 19:34:12.809: W/KeyCharacterMap(1432): No keyboard for id 0
07-10 19:34:12.809: W/KeyCharacterMap(1432): Using default keymap: /system/usr/keychars/qwerty.kcm.bin
</code></pre>
