有没有一种方法可以将存储的 Flash 视频同步传输给多个人,但让其中一个人控制播放(播放/暂停/搜索/等)
我对部署Flash视频流解决方案不太了解,我想知道以下内容是否可以在Flash中完成。
我正在创建一个应用程序,多个人可以同时观看视频,但其中一个人控制每个人的视频播放。 此外,控制者并不总是同一个人,如果有人离开或取决于其他因素,控制者可能会发生变化。
请指出我正确的方向。
谢谢!
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!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我确信这是可能的。 我不使用闪光灯; 但这里有一个关于如何实现此目的的高级想法:
在每个客户端上播放视频; 并确保它们同步。 但是,当“控制器”暂停、跳过或停止视频时,向每个客户端发送信号,在自己的客户端上重复该操作。 您可以使用数据库来完成此操作(对于 MySQL,具有 MEMORY 类型后端的表应该适合此操作)。 客户端每秒都会询问服务器是否更改了“控制器”操作。 每次“控制器”执行操作时,它都会在数据库中排队。
我看到的唯一问题是确保每个客户端的流同步(例如,当出现滞后时,它不是“放慢速度”,而是简单地“跳”到“控制器”所在的帧)
我希望这会有所帮助:)
编辑
每秒“控制器”都会向客户端发送一条消息,其中包含其当前的视频帧数......它可以工作。
I'm sure it's possible. I don't do flash; but here is a high-level idea about how to accomplish this:
Play the video on each client; and make sure they are in sync. But when the "controller" pauses, skips or stops the video, send a signal to each client repeating the action on their own client. You could do this using a database (for MySQL a table with back-end of type MEMORY should be good for this). Each second the clients ask the server if their has been a change of the "controllers" actions. Each time the "controller" makes an action it gets queued in the database.
The only issue I see left is making sure each client's stream is in sync (like, instead of "slowing down" when there is lag it simply "skips" to the frame that the "controller" is at)
I hope this helps a bit :)
EDIT
Each second the "controller" sends a message to the clients with his current frame count of the video... it could work.