문제

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

도움이 되었습니까?

해결책

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

다른 팁

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.

We establish connection to the server only through the RTMP protocol.use rtmp instead rtmps,the connection can be established.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top