Android Question IP Camera Stream/Capture/Compare

daniedb

Active Member
Licensed User
Longtime User
Hi Guys
I want to know if the following will be possible, and any suggestions.
I want to display a IP Camera Stream/Video in my Android app, take a Snapshot of a image (eg: image 1), take a second snapshot (image2) and then display the differences in the 2 images (Something how motion detection work)
Any advice will be appreciated
Thanks
Danie
 
Erel. If I can just for now, get the video feed from the IP Camera and take snapshots, Anything available. All Cameras are Foscam

Thanks
 
Upvote 0
Hi again.

The IP Camera manufacturer was kind enough to send me a APK example aswell as the .java and .so SDK files.
But I have no clue on where to start using it in b4a

If I understand correct, the Latest B4A version we can use the Java classes
Any advice will be appreciated
Thanks
 
Upvote 0
Thanks NJ Dude
Any pointers or Tutorials on how to do this. I'm completely new with this
Thanks
Danie
 
Upvote 0
many IP Cameras now support RTSP protocol
check if your camera support it
if so you can only use the native VideoView to get the stream working
 
Upvote 0
KZero.
No Problem, I can view the IPCam on my android, but I need to take snapshots, and zoom/PTZ. thats the reason I need the SDK going
Thanks Anyway
 
Upvote 0
///SOLVED //////

Hi Daniedb, which code you use to see the video sended from the IP camera? If a use Whatever app from playstore, it needs only camera's ip address, login and password , nothing else, and the app let me see video and move the camera, so I think it is not so hard to do, any idea?

///SOLVED //////
 
Last edited:
Upvote 0
ok .

i found the ip cam library ,
You even use webview :

To see image :
WebView1.loadUrl("http://192.168.1.79:80/snapshot.cgi?user=XXX&pwd=xxx")

to send ptz command :

Up :
WebView1.loadUrl(http://192.168.1.79:80/decoder_control.cgi?command=0&user=xxx&pwd=zzz)

Down :

WebView1.loadUrl(http://192.168.1.79:80/decoder_control.cgi?command=2&user=xxx&pwd=zzz)

I studied the html file that is used to send video from ipcam ,and inside it there is a timeout to reload the image ,i attach it (delete .zip extension)


I found an usefull manual , i attach it
 

Attachments

Last edited:
Upvote 0
Back
Top