如何同步 Red5 NetConnection 调用
我正在使用 red5 和 flex 开发在线游戏。使用RTMP连接。我只使用了netConnection.call。我的问题是 red5 调用没有同步进行。有些电话突然打给客户,有些电话需要时间。我想让这个电话按顺序到达客户端。请帮助我任何人...
I am developing a online game using red5 and flex. using RTMP connection. I used only netConnection.call. my issue is the red5 calls are not coming synchronized manor. some calls are coming to client suddenly some calls are taking time. I want to make this calls reach to client side in order. please help me any one...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
以下是我的意见,我相信有更好的方法可以做到这一点。
但是,(red5 中总是有一个但是),如果您的应用程序需要按顺序得到一些结果,也许您应该考虑您的架构。大多数时候,经过仔细考虑的事件处理机制可以消除需要或有序的结果。
Followings are my opinions, I'm sure there are far better ways to do this.
But, (there is always a but in red5), if your application needs some result in order, maybe you should consider your architecture. Most of the time, a carefully thought event handling mechanism removes the need or ordered results.
Red5 提供了两个支持同步和多线程访问的应用程序适配器。要使用它们,只需在应用程序中扩展 org.red5.server.adapter.ApplicationAdapter 或 org.red5.server.adapter.MultiThreadedApplicationAdapter 即可。
Red5 offers two application adapters which support synchronized and multithreaded access. To use them, simply extend org.red5.server.adapter.ApplicationAdapter for sync or org.red5.server.adapter.MultiThreadedApplicationAdapter in your application.