i m developing a simple application which will play video from a vlc streaming server through rtsp streaming...but while i m running the application it shows me a error like this "Mediaplayer Error(1,-21474648),Videoview Error:1,-21474648","ARTSPConnectio Status:RTSP/1.0 461 Unsupported transport"and MyHandler SETUP(1) completed with result 0" in the logCat and also displaying "this video can not be played" in the emulator..
I did a lot of Google on it..but didn't find a solution,below is my code
public class VideoDemo extends Activity
{
private VideoView video;
private MediaController ctlr;
@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
getWindow().setFormat(PixelFormat.TRANSLUCENT);
setContentView(R.layout.main);
video=(VideoView)findViewById(R.id.video);
ctlr=new MediaController(this);
video.setMediaController(ctlr);
video.setVideoURI(Uri.parse("rtsp://192.168.1.2:5544/sample"));
video.requestFocus();
video.start();
}
}
Thanks in advance