Skip to main content
May 27, 2010
Answered

Question about NetConnection and RTMP / RTMPT connectionsWWell

  • May 27, 2010
  • 2 replies
  • 1516 views

Well hello again there FMS forums!

My problem:

I'm building a video chat application and I have a mate behind a firewall who is unable to connect when using RTMP, however if I change the net-connection url to use the RTMPT protocol he's able to connect.

The question:

Does flash automagically switch to RTMPT if it can't establish a connection over a regular RTMP connection?  Or will I need to come up with a way of doing that myself?

I'm currently working under the assumption that Flash first tries RTMP and if that doesn't connect it tries RTMPT... but again, that's not connecting for my friend unless I specifically set it as the url.

Thanks again!

    This topic has been closed for replies.
    Correct answer SE_0208

    I don't think so it is bandwidth issue. I was actually updating my previous post but somehow it did not get updated.

    You can also look at this post : http://forums.adobe.com/thread/633753?tstart=30 - might be helpful too.

    I would suggest you make connection with port 1935 specified and see if you get faster response, if you get rejected or failed - you can try rtmpt directly - i mean this would save delay

    2 replies

    Participating Frequently
    May 27, 2010

    Look at below forum posts- they might be helpful to you:

    http://forums.adobe.com/message/2516437#2516437

    http://forums.adobe.com/thread/633753?tstart=30

    So i would suggest you make connection with port 1935 specified , in that case i don't think Flash Player would try to do port scanning( though I am not 100% sure) - so if this returns directly as rejected or failed, you can try "rtmpt" - i mean this might save delay.

    Participating Frequently
    May 27, 2010

    Flash Player actually does that. It tries with rtmp and then falls back to rtmpt. But probably its taking more time for your friend. Does he get NetConnection.Connect.Failed ?

    May 27, 2010

    Thanks SE!  I bet that's what's happening.

    Hmm... If it's taking too long to connect does that mean that his connection probably wouldn't support necessary the bandwidth for a video chat? 

    Or is that just wishful thinking?  

    SE_0208Correct answer
    Participating Frequently
    May 27, 2010

    I don't think so it is bandwidth issue. I was actually updating my previous post but somehow it did not get updated.

    You can also look at this post : http://forums.adobe.com/thread/633753?tstart=30 - might be helpful too.

    I would suggest you make connection with port 1935 specified and see if you get faster response, if you get rejected or failed - you can try rtmpt directly - i mean this would save delay