在 Flex RTMFP 中连接到 Ghost 用户

发布于 2024-10-09 07:10:07 字数 548 浏览 5 评论 0原文

我有一个简单的 Flex RTMFP P2P 视频应用程序,与 Adobe Cirrus VideoPhone 示例应用程序。我在开发此应用程序时遇到的一个问题(示例中也出现同样的问题)是当您尝试连接到幽灵 Stratus 实例时,即您尝试呼叫其 Stratus id 在数据库中但不再在线的某人页面。下面是我的意思的一个示例:

假设您转到 Adob​​e Stratus 示例并以 Dan 身份进行连接。然后打开一个新选项卡,再次转到示例并以 Fred 身份连接。如果从现在开始,你(作为弗雷德)打电话给丹,一切都会顺利进行。但是,如果您关闭以 Dan 身份连接的选项卡,然后从 Fred 选项卡尝试连接到 Dan,则程序将挂起。

我本以为如果您尝试连接到不再在线的 Stratus 实例,将会触发一个 NetStream 事件,但我似乎找不到除了 NetStream.Connect.Rejected 之外的任何内容,这似乎不是叫。

非常感谢任何帮助!

I have a simple Flex RTMFP P2P video app in the same mold as the Adobe Cirrus VideoPhone Sample application. A problem I've been encountering in developing this app (the same problem occurs in the sample) is when you try to connect to a ghost Stratus instance i.e you try to call someone whose Stratus id is in the database but who is no longer on the page. So here's an example of what I mean:

Let's say you go to the Adobe Stratus sample and connect as Dan. Then open up a new tab, go to the sample again and connect as Fred. If from this point, you (as Fred) call Dan everything will work fine. But, if you close the tab in which you connected as Dan, and then from the Fred tab try to connect to Dan the program will just hang.

I would have thought there would be a NetStream event that would be triggered if you tried to connect to a Stratus instance that is not longer online but I can't seem to find anything besides NetStream.Connect.Rejected which doesn't seem to be called.

Any help is much appreciated!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

西瑶 2024-10-16 07:10:07

您是否尝试过NetStream.Connect.Failed

您还应该向传入流添加一个事件侦听器,并监视 NetStream.Connect.Closed 以查看它是否在会话期间断开连接。如果任何时候被解雇;从您的数据库中删除该对等点。

Did you try NetStream.Connect.Failed?

You should also add an event listener to the incoming stream and watch for the NetStream.Connect.Closed to see if it is disconnected during conversation. If it is fired any time; remove that peer from your db.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文