B4J Tutorial B4J CCTV example

Status
Not open for further replies.
SS-2013-11-20_10.37.00.png


This example is similar to the previous example: http://www.b4x.com/android/forum/threads/android-based-closed-circuit-tv-cctv-example.23601/#content

The server is now implemented in B4J.

In order to run this example you will need to allow incoming connections on port 17178 (or other port). See the above link for more information.

The communication is based on AsyncStreams in prefix mode.

The complete server code is less than 50 lines of code.

You should set the server ip address in the device code (ServerIp in Sub Process_Globals).
 

Attachments

  • CCTV-B4A.zip
    9.8 KB · Views: 2,718
  • CCTV-B4J.zip
    1.4 KB · Views: 2,797

Erel

B4X founder
Staff member
Licensed User
Longtime User
SS-2013-11-20_12.05.41.png


The example attached allows you to connect multiple devices to the desktop. The layout is set for two devices. It should be simple to add more ImageViews and connect more devices.

The server can cope with disconnections and reconnections.
 

Attachments

  • CCTV-B4J.zip
    1.7 KB · Views: 2,167
Last edited:

supriono

Member
Licensed User
Longtime User
cool erel? i will try with my IP CAM.
erel do yo have sample code for make line chart with b4j??
 

YIM bunchhat

Active Member
Licensed User
Longtime User
I really interest this program, but I strongly want to use Phone to Phone. Not Phone to PC....:(
 

Nizze

Active Member
Licensed User
Longtime User
Note that this example requires B4J Beta 3+ (which will soon be released).

He he

After some test without sucsess i return here and then i noticed Beta 3 ...
So ok lets try some more

By the way Erel

This is locking really good !!
 
Last edited:

schimanski

Well-Known Member
Licensed User
Longtime User
Thanks, Erel! this is a very nice application.

But what is the code in B4A for

B4X:
Dim img As Image
    img.Initialize2(In)
    ImageView1.SetImage(img)

to transform it to B4A??? :confused:

Thanks for help...
 

tigrot

Well-Known Member
Licensed User
Longtime User
Hi everybody, I have ported, some month ago, the idea to 3G communication, using an home made DNS to resolve IP addresses of both Android's and PC's devices. There is the need for a WEB supervisor with a fixed IP, but having a good speed in connections you can have bidirectional audio, video and instant position of the device on both wifi and public network connections. The system is built on OpenGts, but there is no need to have the full package online. It can handle unlimited operators' stations and unlimited controlled devices. It's only one example of what the marvelous package Anywhere Software can build. Thank you Erel!
 

suciwulans

Active Member
Licensed User
Longtime User
why my IP Address always 192.168.173.1? I already changed to 192.168.0.1 but still same for the result? what happen?
 
Status
Not open for further replies.
Top