Android Tutorial Android based Closed Circuit TV (CCTV) example

suciwulans

Member
Licensed User
cctv example error

You can use this example with a local network or over the internet.

The second case is a bit more complicated. Assuming that you do not have a static ip address you will need to use a third party service that assigns a hostname to your dynamic address.

You will also need to add a "forward port" rule in the router.

There are many online tutorials that can help you with these tasks.
i try your code. unfortunately, program suddenly stop respond and get screen blank. this is bug? i use samsung galaxy tab 2.0:sign0085:
 

suciwulans

Member
Licensed User
error connecting

when i try connect from android to server, i got message " error connecting". windows firewall already turn off. what should i do?
 

suciwulans

Member
Licensed User
error conecting. Firewall already turn of. Wifi turn on, ip addres already set on pc. What wrong procedure?
 

Geezer

Active Member
Licensed User
Hi Erel,

I thought the example you gave was perfect for spying on the new puppy and expanded on it a little so I could have multiple cameras.

The attached files are the amended app and a new server file which allows up to 4 cameras.

Double clicking the camera view on the server opens a new popup you can watch.

Server is now in vb.net because I don't remember C# :BangHead:

The app itself now has a # button to cycle camera number 1 through 4.

Again, the code is mostly Erel's example, I just added to it. Hope it's useful.
 

Attachments

suciwulans

Member
Licensed User
This is a network problem. Can you ping the device IP address from the computer? Are you setting the correct IP in the device?
yes i can ping from computer. I still get error connecting on my galaxy tab 2.0. Any suggestion?
 

suciwulans

Member
Licensed User
Hi Erel,

I thought the example you gave was perfect for spying on the new puppy and expanded on it a little so I could have multiple cameras.

The attached files are the amended app and a new server file which allows up to 4 cameras.

Double clicking the camera view on the server opens a new popup you can watch.

Server is now in vb.net because I don't remember C# :BangHead:

The app itself now has a # button to cycle camera number 1 through 4.

Again, the code is mostly Erel's example, I just added to it. Hope it's useful.
Multi cc tv server and multi cctv client also ia got error connecting. scenario, i connect my pc to galaxy tab 2.0 ip all set, ping is ok but still cannot receive streaming camera from device to pc. any ideas? desperate.
 

suciwulans

Member
Licensed User
I got error for this example. i modified for IP and port address using edtip.text and edtport.text also btnstartstream button here is the code
after modified from cameraCCTVCLient.zip
B4X:
Sub Process_Globals
   Private frontCamera As Boolean = False
   Public ServerIp As String
   Public ServerPort As Int
   Private IntervalMs As Int = 150
   Private lastPreviewSaved As Long
End Sub

Sub Globals
   Private Panel1 As Panel
   Private camEx As CameraExClass
   Dim edtServerIP As EditText
   Dim edtServerPort As EditText
   Dim btnStartStream As Button
End Sub

Sub btnStartStream_Click
ServerIp=edtServerIP.Text 
ServerPort=edtServerPort.Text 
   StartService(Communicator)
End Sub
is it correct i modified the source code? thanks
 

cadcamman

Member
Licensed User
Closed Circuit TV (CCTV) example

Hi Guys

I get an error when i run this example, I have added a screenshot. i get the same error on my phone

can anyone point me in the right direction?

Thanks

Cadcamman
 

Attachments

Top