PDA

View Full Version : Communication between projectors on remote machines


mozilla
05-07-2008, 02:44 PM
Dear Experts

In my current project I have two projectors running on different machines that need to talk to each other as follows:

projector A / machine A / (192.168.0.1)

||
||
||
||
\/


projector B / machine B / (192.168.0.2)

Is this possible with NetConnection? Can someone give me a hint, where I might get an example? Searched around a bit and could not find something similar.

Every input very much appreciated!
Kind regards, MOZ

slimdanny
05-07-2008, 03:23 PM
What is it that you're doing?

If you're just exchanging info you could set up a web-server on one machine and load flash from it on both machines and communicate through back end such as PHP.

Can't really answer this question without knowing what you are trying to accomplish.

mozilla
05-07-2008, 03:34 PM
it is an exhibition setup.

basically there are two presentations on two different machines.
whenever a user clicks on something in one presentation the second presentation should be updated too.

preferably I would like to avoid webserver handling as it involves another level of complexity for the people at the booth.

the nicest way would be just to have two machines with their projectors and static ip's.

hope I could explain better.

thx for any input

creynders
05-07-2008, 03:40 PM
From your description it sounds that you could eliminate one machine altogether and just have the two applications running on one machine with two different projectors (extended desktop) If that could be a solution then it's easy: just use localconnection.

mozilla
05-07-2008, 03:52 PM
Hi creynders

Thanks for the input. However this is unfortunately not possible since the two machines are quite far apart and the only connection is through a subnet.

any other ideas?

slimdanny
05-07-2008, 05:12 PM
There are Socket and XMLSocket classes that can steer you in the right direction, however consider security sandbox when programming them.

creynders
05-07-2008, 06:26 PM
Hi creynders

Thanks for the input. However this is unfortunately not possible since the two machines are quite far apart and the only connection is through a subnet.

any other ideas?
Then the only other possibility is to use a webserver (on one of the two machines or on a separate machine all together).
You can write your own socketserver or you can look into for instance RED5 (there are others, but I haven't worked with them yet) I had the RED5 server up and running AND wrote a simple duplex comm app in half an hour, so it really ain't that difficult to use.

mozilla
05-07-2008, 08:12 PM
Thanks slimdanny and creynders for the answers

I wrote a little XML-Socket server in java some years ago - guess I need to dig out that fossil.

I was basically hoping that the projector with as3 could be able to establish a socket directly with another projector thus omitting the need for a third application.

But it seems I still will need the old fella.

Cheers, MOZ