November 2nd, 2012, 01:38 AM
|
#1 (permalink)
|
|
New Member
Thread Author (OP)
Join Date: Nov 2012
Posts: 1
Device(s):
Carrier: Not Provided
Thanks: 0
Thanked 0 Times in 0 Posts
|
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
|
|
|