adjust for red5 amf3 connection.

need to refactor for this program.