Synchronize and save time for multiple applications

How can I implement a system that will support 20 applications running on a closed network to stay synchronized while performing various tasks?

Each application will be identical, on an identical machine. These machines will have a socket connection to the main application, which will issue TCP commands to units such as Play:"Video1.mp4" . It is very important that these videos play simultaneously and save time with each other.

The only difference between each module is that the window will be shifted to the desktop, so that each of them has a different presentation port in the application - as this will be used in setup with multiple projectors.

Any solutions / ideas will be welcome.

+6
source share
2 answers

I did this a few years ago. 5 computers running 5 instances of the same flash application. The Evey application displayed a β€œslice” of the same huge application, and everything that needed to be synchronized with an accuracy of several seconds.

I used a simple Python script (running on the 6th machine) that sent OSC messages on the local network. flash applications listened to FLOSC for these packages and sent a status message to the Python script.

The material worked at the Snane Museum (New York) and at the Tokyo Palace (Paris), so I’m quite sure of the solution :) I hope this helps you

+3
source

You must track and update data in your main application. You need to broadcast recently updated data to all connected clients to deliver updated data. after any update from any client, you should send updated data to all connected clients.

In a remote shared entity, FMS is used to centrally maintain data on a network-connected application through FMS. when any client sends an updated OnSync event, it is launched into the entire client application, and the data is synchronized with the FMS Remote Shared Object. So, you must develop this type of stream for the correct synchronization of data over the network.

You can also use the RPC system to synchronize data between all connected applications to the main application. in that you need to run RPC for the client so that the Master application sends the data update, and the main application sends RPC to all other clients that are connected to the main application.

+3
source

Source: https://habr.com/ru/post/902405/


All Articles