• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

How to connect IP Camera in android Application?

Hi all,
I'm new for android application development.I have a one problem in my application.I'm using Eclipse Indigo SDK and android 4.0 for Developing application.I have connecting IP Camera through rtsp protocol in my application.Here i attached my code

private VideoView video;
private MediaController ctlr;
video=(VideoView)findViewById(R.id.video); video.setVideoURI(Uri.parse("rtsp://admin:12345@192.168.1.133:80/h264/ch1/main/av_stream.mp4"));
ctlr=new MediaController(this);
ctlr.setMediaPlayer(video);
video.setMediaController(ctlr);
video.requestFocus();
video.start();

This is my application code. This rtsp protocol working fine when i'm connecting with VLC player,but this is did not working in my application. Please any one clarify my problems.

Thanks & regards,

Sankar K
 
What make and model device do you have. ?

images
 
Back
Top Bottom