Hi,

Have u got to solve the below problem.
I am facing the similar problem.
Please help me out in having the java client which could interact with red5
server.

Amit Arora



Ido Abramovich wrote:
> 
> I'm having trouble with implementing a simple RTMPClient.
> when trying to invoke a method on the server side, I get the following
> error:
> 
>      [java] [WARN] 0 SocketConnectorIoProcessor-0.0:(
> org.red5.server.net.rtmp.RTMPClient.warn ) Unhandled ping: Ping: 0, 0, -1,
> -1
>      [java] 00 00 00 00 00 00
> 
> on the client side im doing :
>     this._client  = new RTMPClient();
>     this._callback = new MyCallback();
>     this._client.connect('127.0.0.1',1935,'testClient');
>     Object[] params = new Object[2];
>     params[0] = new Double(2);
>     params[1] = new Double(3);
>     this._client.invoke("add",this._callback);
> 
> where MyCallback is defined as:
>     
>     class MyCallback implements IPendingServiceCallback {
>         public void resultReceived(IPendingServiceCall call) {
>             System.out.println("result Received");
>         }
>     }
> 
> and on the server side:
>     public class Application extends ApplicationAdapter {
>     ...
>      public boolean appConnect(IConnection conn, Object[] params) {
>              log.info("testClient: client connected");
>               return super.appConnect(conn,params);
>       }
>       
>     public Double add (Double a, Double b) {
>            return a + b;
>     }
> }
> 
> 
> I can see the client connecting in the logs, but no matter how I act, I
> can't get the rpc methods running.
> 
> Thanks.
> 
> 
> 
> 
> 
>  
> ____________________________________________________________________________________
> No need to miss a message. Get email on-the-go 
> with Yahoo! Mail for Mobile. Get started.
> http://mobile.yahoo.com/mail
> _______________________________________________
> Red5 mailing list
> [email protected]
> http://osflash.org/mailman/listinfo/red5_osflash.org
> 
> 

-- 
View this message in context: 
http://www.nabble.com/help-on-using-RTMPClient-tf3342887.html#a11230838
Sent from the Red5 - English mailing list archive at Nabble.com.


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

Reply via email to