带 rtmps 的 Flex iOS 应用程序
我正在尝试连接到 AIR 中的 rtmps 端点。
代码如下所示:
private function onCreationComplete():void{
var conn:NetConnection = new NetConnection();
conn.connect("rtmps://someserver.com/someapplication");
conn.proxyType = "best";
conn.addEventListener(NetStatusEvent.NET_STATUS,statusHandler);
}
private function statusHandler(event:NetStatusEvent):void{
var conn:NetConnection = NetConnection(event.target);
trace(event.info.code);
}
当在 ADL(模拟器)中在桌面上运行应用程序时,这实际上可以完美运行。 但是,当我在 iPad 上安装应用程序 (.ipa) 时,连接失败。
我的台式机和iPad都连接到同一个无线网络(因此使用相同的网络架构进行连接)
以前有人经历过这种行为吗?
干杯
I am trying to connect to an rtmps endpoint in AIR.
The code looks like this:
private function onCreationComplete():void{
var conn:NetConnection = new NetConnection();
conn.connect("rtmps://someserver.com/someapplication");
conn.proxyType = "best";
conn.addEventListener(NetStatusEvent.NET_STATUS,statusHandler);
}
private function statusHandler(event:NetStatusEvent):void{
var conn:NetConnection = NetConnection(event.target);
trace(event.info.code);
}
This actually works perfectly when running the app on the desktop in ADL (emulator).
However when I install the application (.ipa) on the iPad, the connection fails.
Both my desktop and the iPad connect to the same wireless network (thus use the same network architecture to connect)
Has anyone experienced this kind of behaviour before?
Cheers
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
这对于Air 3.1来说仍然是一个问题。
我已向 Adobe 提交了错误报告 - https://bugbase.adobe。 com/index.cfm?event=bug&id=3133542
This is still a problem with Air 3.1.
I have raised a bug report with Adobe - https://bugbase.adobe.com/index.cfm?event=bug&id=3133542
经过认真努力找出问题所在后,
我们无法通过
rtmps
建立与服务器的连接。常规
rtmp
似乎没问题,但不幸的是,这对我们来说不是一个选择。*编辑*
此问题已在 AIR 3.1 版本中得到解决。
结果发现,对于 iOS,通过 WIFI + 代理通过 RTMPS 连接失败。
有关详细信息,请查看 AIR 3.1 发行说明。
After some serious efforts to figure out what was wrong here,
We were unable to establish a connection to our server via
rtmps
.Regular
rtmp
seems to be fine but is not unfortunately not an option for us.*EDIT*
This problem was solved in the AIR 3.1 release.
Turns out connecting via WIFI + Proxy via RTMPS was failing for iOS.
Check out the AIR 3.1 release notes for more information on this.
我们只能通过RTMP协议与服务器建立连接。使用rtmp而不是rtmps,就可以建立连接。
We establish connection to the server only through the RTMP protocol.use rtmp instead rtmps,the connection can be established.