Keep-Alive RTMP Connection in Flash

Discussion in 'Programming' started by mc2fred, Jun 2, 2010.

  1. #1
    Hello everyone,

    I am currently building a custom rtmp flash player and its almost completed :D

    We have one unsolved issue though... if the player idles for too long, the connection closes. (It appears to occur also when the buffer exceeds its capacity)

    Do you know of any way to keep the connection from closing ?

    I've already tried installing a timer that resumes-pauses the video every 5 seconds when its paused, but it closed anyways.
     
    mc2fred, Jun 2, 2010 IP
  2. mc2fred

    mc2fred Peon

    Messages:
    16
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Nevermind, I think I found the solution...

    It seems 'keep-alive' is an acceptable header command.

    So basically you can just write "ncConnection.addHeader('keep-alive',true);"
     
    mc2fred, Jun 2, 2010 IP