Hi,

I have a hard time setting connection parameters for the test client I 
am developing .

 RTMPClient{
.....

        RTMPClient client = new RTMPClient();  
        ObjectMap<String, Object> params = new ObjectMap();
            params.put("app","hibernate/r4i");
            params.put("flashVer", "WIN 9,0,16,0");
            params.put("swfUrl","http://localhost/test.swf";);
            params.put("tcUrl", "rtmp://localhost/oflaDemo");
            params.put("fpad", false);
            params.put("audioCodecs",(double)615);
            params.put("videoCodecs",(double)76);
            params.put("pageUrl","http://localhost/test.html";);
            params.put("objectEncoding",(int)3);
           
            params.put("password","testuser");
            params.put("username","gosh");

            client.connect("127.0.0.1",1935,params);

}

and my Application.java has

 public boolean roomConnect(IConnection conn, Object[] params)
    {

 // Parse the user/pass out of the connection parameters
        HashMap map = (HashMap) params[0];
        String userName = (String) map.get("username");
        String password = (String) map.get("password");
        System.out.println(userName+"::"+password);
}

What is the difference between the ways of getting parameters from the 
flex client and from a java client? Why the flex client works not the 
invoke call parameters from java?

Thanks in advance.

-Sri.


_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org

Reply via email to