I am trying to write a very simple application which simply tries to playback a video which is being streamed by a RTSP Server. I had read somewhere that the VideoView component is capable of handling RTSP Streams. So i have written the code in the following way.
vv = (VideoView) findViewById(R.id.videoView1);
mc = new MediaController(getApplicationContext());
vv.setVideoURI(Uri.parse(url));
vv.setMediaController(mc);
vv.requestFocus();
vv.setOnPreparedListener(new MediaPlayer.OnPreparedListener() {
public void onPrepared(MediaPlayer mp) {
vv.start();
}
});
The URL String is of the following format rtsp://192.168.1.136:8554/mercykilling.mkv
My problem is that i keep getting an error as below
V/MediaPlayer(16501): message received msg=100, ext 1=1, ext2=-18
Can anyone give any pointers on this topic?