HTML5 Web 套接字(TCP 连接),带闪存回退 [英] HTML5 Web sockets (TCP Connection), with flash fallback

查看:31
本文介绍了HTML5 Web 套接字(TCP 连接),带闪存回退的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我读到了一个项目,该项目使开发人员能够通过自动回退到使用 flash 方法来编写与旧浏览器兼容的 HTML5 Web 套接字应用程序.

I read about a project that enables the developer to program a HTML5 web sockets application that is compatible with older browsers by automatically falling back to using a flash method.

任何人都可以提供此信息,因为我现在有兴趣开始开发,我找不到详细信息?

Can anyone source this, as I can't find details now I'm interested in starting development?

谢谢!

推荐答案

我写了一个 有关此的不错的教程.

总结:

在页面上包含 web_socket.js 和 flash (swf) 对象并开始.web_socket.js 对象包含必要的代码,以便在不支持 WebSocket 时回退到 FlashSocket.

Include the web_socket.js and flash (swf) object on the page and get going. The web_socket.js object contains the necessary code to fallback on the FlashSocket if WebSockets are not supported.

如果您想在实际应用程序中使用它,您必须在端口 843 上提供 Flash 策略文件.我也讨论过这个问题.

If you want to use this in an actual application, you will have to server Flash Policy Files on port 843. I go over that too.

这篇关于HTML5 Web 套接字(TCP 连接),带闪存回退的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆