1

I don't know much about deploying Flash video streaming solutions, and I want to know if the following can be accomplished in Flash.

I am creating an application where multiple people can watch a video at the same time , but one of those people controls the playback of the video for everyone. Furthermore, the controller is not always the same person, it can change if someone leaves or depending on other factors.

Please point me in the right direction.

Thanks!

4

1 回答 1

1

我确信这是可能的。我不做闪光灯;但这里有一个关于如何实现这一点的高级想法:

在每个客户端上播放视频;并确保它们同步。但是当“控制器”暂停、跳过或停止视频时,向每个客户端发送一个信号,在他们自己的客户端上重复该操作。您可以使用数据库来执行此操作(对于 MySQL,后端类型为 MEMORY 的表应该对此有好处)。客户端每秒钟都会询问服务器他们的“控制器”操作是否发生了变化。每次“控制器”执行操作时,它都会在数据库中排队。

我看到的唯一问题是确保每个客户端的流是同步的(例如,当存在滞后时,它不会“减速”,而是“跳过”到“控制器”所​​在的帧)

我希望这能有所帮助 :)

编辑

每一秒,“控制器”都会向客户端发送一条消息,其中包含他当前的视频帧数……它可以工作。

于 2009-01-25T04:35:20.293 回答