public class ConnectionParameter
extends AMFType
Struct used when passing extended connection parameters to the RTMPSource. For example,
to pass a parameter to the Source, that's typed as an AMF0 number and to be placed inside the AMF object that most standard
parameters going to the connect method are encapsulated in, create a ConnectionParameter object like this:
ConnectionParameter cp = new ConnectionParameter("myCustomParameter", new Double(1), AMF.NUM, OBJECT).
Username / password, chatroom names etc. are mostly appended to said object with or without a key, so a username ConnectionParameter
could be created like:
cp = new ConnectionParameter("", "testuser", AMF.STRING, APPEND)
To create a secondary object, itself holding multiple parameters, create another ConnectionParameter array
ConnectionParameter[] nested = new ConnectionParameter[2];
nested[0] = new ConnectionParameter("user", myName, AMF.STRING, ConnectionParameter.NESTED);
nested[1] = new ConnectionParameter("pw", myPw, AMF.STRING, ConnectionParameter.NESTED);
and add it to the one going into the RTMPSource's constructor:
params[x] = new ConnectionParameter("", nested, AMF.OBJECT, ConnectionParameter.APPEND);
The way parameters need to be given ultimately depends on the serverside actionscript and dsj may not be able
to satisfy all requirements at the time being.