문제

I'm new to ActionScript, but I'm trying to decipher a pre-existing project and make some modifications as I go.

I have a section of code that starts with creating a new NetConnection and then streaming a media file from an external source. I see in the documentation that you can provide a destination port (via the URL), but is it possible to force Flash to use a specific source port? I couldn't find a clear way to do this in the documentation, but I was curious if anyone else has an alternate method or idea.

The end goal of this is that I would like to be able to use the source port in a predictable way to do NAT Hole Punching. Thanks for any suggestions or answers!

도움이 되었습니까?

해결책

Flash does not provide this level of control over the network calls. Sorry.

다른 팁

I think you're looking for tunneled RTMP, which wraps packets in HTTP and uses port 80. To use it just connect with the protocol "rtmpt" instead of "rtmp". Your FMS server should be configured to listen on port 80 for this purpose.

use this syntax

connect ()  method   
public function connect(command:String, ... arguments):void

use this syntax as command parameter

protocol:[//host][:port]/appname[/instanceName]
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top