Copy link to clipboard
Copied
Hi everybody,
I have a big issue with the way RTMPS connections are initiated in flash player.
One of my customer network infrastructure doesn't allow direct connections to my server through the port 443 but allows proxified connections (by the use of CONNECT method).
The problem is that flash player waits for the direct connection attempt to fail before trying the proxified connection... and on this network infrastructure direct connection timeout is 20s (I cannot change that).
The users need to wait that time to get connected to the server...
Is there a way to tell the flash player not to try the direct connection, or not to wait for this connection to timeout ?
Maybe a directive in the proxy autoconfig file (.pac) ?
I already tried each NetConnection proxyType parameter values without success.
Any help would be much appreciated !
You mentioned the "CONNECT" method. You've tried "CONNECTOnly" which forces it to use the CONNECT method by default first and it still isn't obeying?
From docs on NetConnection.proxyType:
Set the proxyType property before calling the NetConnection.connect() method.
...
If the property is set to "CONNECTOnly", the player tries to use the CONNECT method first. If that fails, there is no fallback.
Copy link to clipboard
Copied
You mentioned the "CONNECT" method. You've tried "CONNECTOnly" which forces it to use the CONNECT method by default first and it still isn't obeying?
From docs on NetConnection.proxyType:
Set the proxyType property before calling the NetConnection.connect() method.
...
If the property is set to "CONNECTOnly", the player tries to use the CONNECT method first. If that fails, there is no fallback.
Copy link to clipboard
Copied
Thank you so much, I don't know how could have I missed this value but it worked flawlessly.
The only drawback is that I now need to initiate 2 parallel RTMPS connections (one with CONNECTOnly, one with best) to allow users not behind a proxy to connect.
Copy link to clipboard
Copied
Learn something new every day or you're not on the ball ;). You're welcome and good luck!
Copy link to clipboard
Copied
Just out of curiosity, do you know in which flash player version CONNECTOnly has been added ?
Copy link to clipboard
Copied
Possibly FP9 but you can always google each versions release notes to track it down more than that. I've never found any desire to publish before FP9 strictly due to no hardware acceleration options being available. Hopefully FP9 is far lower than your needs, which is video, so I should think you'd want to use the GPU.
A documentation option that's often overlooked is you can filter the docs very nicely using the filters above the content. When I tell it to only show me docs from FP9 and earlier, CONNECTOnly is still there. That tells me it's at least in FP9. Here's the filters I'm referring to:
When clicking on the proxyType definition itself it also states FP9 and later.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now