同步和计时的多个应用程序多个、应用程序

2023-09-08 13:41:03 作者:流年浅唱一曲离殇

我将如何实现一个系统,该系统将保持一个封闭的网络上运行20个应用程序,以保持同时执行各种任务的同步?

How would I implement a system that will keep 20 applications running on a closed network to stay synchronized whilst performing various tasks?

每个应用程序将是相同的,相同的机器上。这些机器将有一个套接字连接到主应用程序,将发出的TCP命令的单位,如播放:Video1.mp4。至关重要的是,这些影片播放的同时,并保持彼此的时间。

Each application will be identical, on an identical machine. These machines will have a socket connection to the master application that will issue TCP commands to the units such as Play:"Video1.mp4". It is vital that these videos are played at the same time and keep time with each other.

每个单元之间的唯一不同的是,窗口将被抵消在桌面上,从而使每一个都有上的应用程序有不同的看法端口 - 因为这将在一个多投影设置用于

The only difference between each unit is that the window will be offset on the desktop, so that each one has a different view port on the application - as this will be used in a multi-projector set up.

任何解决方案/想法将不胜AP preciated。

any solutions/ideas would be greatly appreciated.

推荐答案

我几年前做的。 5台计算机上运行相同的Flash应用程序的5个实例。埃维应用程序是显示需要在几秒钟precision分数要同步同一个庞大的应用程序,一切的切片。

I did it some years ago. 5 computers running 5 instances of the same flash app. Evey app was displaying a "slice" of the same huge app and everything needed to be synchronized at fractions of seconds precision.

我用一个简单的Python脚本(第6台机器上运行),这是在本地网络上发送OSC消息。闪光灯的应用程序是通过为Flosc听了这个数据包,并发送到Python脚本的信息对他们的状态。

I used a simple Python script (running on a 6th machine) that was sending OSC messages on the local network. the flash apps were listening through FLOSC to this packets, and were sending to the Python script message about their status.

的东西是在Withney博物馆(纽约州)和东京宫(巴黎),所以我非常有信心解决方案:)我希望它可以帮助你运行

The stuff was running at the Withney Museum (NY) and at Palais de Tokyo (Paris), so I'm quite confident about the solution :) I hope it helps you

 
精彩推荐
图片推荐