Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

RTMPS connection delayed due to direct connection attempt

New Here ,
Aug 22, 2013 Aug 22, 2013

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 !

TOPICS
ActionScript
1.0K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Aug 22, 2013 Aug 22, 2013

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.

Translate
LEGEND ,
Aug 22, 2013 Aug 22, 2013

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 23, 2013 Aug 23, 2013

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 23, 2013 Aug 23, 2013

Learn something new every day or you're not on the ball ;). You're welcome and good luck!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 23, 2013 Aug 23, 2013

Just out of curiosity, do you know in which flash player version CONNECTOnly has been added ?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 26, 2013 Aug 26, 2013
LATEST

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:

fp9.jpg

When clicking on the proxyType definition itself it also states FP9 and later.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines