dtukyb8095 2013-03-06 22:42
浏览 39
已采纳

在我开始之前需要帮助,将图像显示给多个人[关闭]

I am looking into what language I would need to learn to do the following,

The screen needs to be view able by multiple people such as a map First they would log in, 1 Person has control over the entire map including controls such as Fog of War, Place tokens down. 1-5 People should be able to see the map but with out being able to make any changes to it.

Any help into the right direction would be helpful. If this does have a name in programming or what not, please let me know and I at least go do some research on it.

  • 写回答

1条回答 默认 最新

  • douwei3280 2013-03-06 22:49
    关注

    This is achievable in a couple ways, but one newer technique/methodology that would fit well is Comet. The basic idea is that users subscribe to various server feeds and receive updates when the server broadcasts new events.

    In this way, Person 1 could send a request to the server to trigger placing a token on the map. Then the server would be set up to broadcast this event to all subscribers (People 2-5).

    The glue would be some kind of client-side application you put together in Javascript that will handle the responses from the server and function as an application for the users. You would need to consider some means for controlling the difference between Person 1 and Person 2-5. That could be done via client-server setup where the client application depends on permissions and authentications from an application server.

    You can accomplish the tasks in the last paragraph with any number of technologies, choose whatever feels most comfortable to you. If I were to do it, I might use backbone.js on the client-side and then some kind of RESTful API on the server side. RESTful is rather ubiquitous so just implement the server side in any language you prefer that has a 3rd party library support for Comet and REST.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 全部备份安卓app数据包括密码,可以复制到另一手机上运行
  • ¥15 Python3.5 相关代码写作
  • ¥20 测距传感器数据手册i2c
  • ¥15 RPA正常跑,cmd输入cookies跑不出来
  • ¥15 求帮我调试一下freefem代码
  • ¥15 matlab代码解决,怎么运行
  • ¥15 R语言Rstudio突然无法启动
  • ¥15 关于#matlab#的问题:提取2个图像的变量作为另外一个图像像元的移动量,计算新的位置创建新的图像并提取第二个图像的变量到新的图像
  • ¥15 改算法,照着压缩包里边,参考其他代码封装的格式 写到main函数里
  • ¥15 用windows做服务的同志有吗