« Return to Thread: RTMPClient on Android

Re: RTMPClient on Android

by Raul Raja :: Rate this Message:

Reply to Author | View in Thread

I was able to run www.smaxe.com RTMP client inside android and connect to my local Red5 server.
There seem to be some issues when the server invokes a method remotely and the client attempts to execute it.
Getting this exception:
Caused by: java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()

It looks like android expects that before the method invocation. I sent the info to smaxe's dev and I'm trying to workaround it by implementing com.smaxe.uv.invoker.IMethodInvoker and calling that before the methods get invoked.
So far no success but I though I'd share this.

I have read many topics in the android forums and many people trying to get streaming and real time communication between android and a Red5/FMS server.

It looks like many people were complaining about google dropping support for the IM and GTALK api's in the SDK but a library like Smaxe could actually bring similar support when using a server like Red5


Thanks for the info, I'm going to contact www.smaxe.com to see if their client would run on android

Chris Walzl wrote:
Hi Raul,

I was looking into this a while back myself - I wanted to embed an  
RTMP Client into an applet.  The Red5 client was too tightly coupled  
with a bunch of other libraries, so it wasn't an option for me.  There  
is a commercial RTMP client that works pretty well from  
www.smaxe.com(it's very reasonably priced, I think).

If there are others out there, i'd love to hear about them.  If anyone  
is going to look into writing one(or porting it from the Red5 code)  
and wants some development help, I'd be interested in that as well.

Best Regards,

Chris Walzl
cwalzl@gmail.com
(972) 974-6728

Sent from my MacBook Pro

On Jul 8, 2009, at 3:54 PM, Raul Raja wrote:

>
> Hi everyone,
>
> I have a requirement to connect to red5 from Android for video,  
> audio and
> sharedobjects, initially the later if video and audio are to hard.
> Before I adventure myself into trying to port RTMPClient to android, I
> wanted to ask if anybody has attempted to do something similar or if  
> there
> is a better route to go.
>
> The initial sample connection code seems pretty straightforward:
>
> final RTMPClient client = new RTMPClient();
> client.connect("localhost", 1935, "echo", new  
> IPendingServiceCallback() {
> public void resultReceived(IPendingServiceCall call) {
> System.err.println("Connected: " + call.getResult());
> client.invoke("echo", new Object[]{"Hello world!"},
> new IPendingServiceCallback() {
> public void resultReceived(IPendingServiceCall call) {
> System.err.println("Received: " + call.getResult());
> }
> });
> }
> });
> I'm guessing though that the RTMPClient class has many dependencies  
> from the
> red5 server api as well as some other lower level libs to handle the
> sockets, connectivity etc...
> Is there a red5 client library with the bare minimum dependencies so  
> that I
> don't have to include all the red5 server sources into my android app?
> Can someone give me some direction on what the best way to acomplish  
> this
> would be?
>
> Thanks
>
> Raul
> --
> View this message in context: http://www.nabble.com/RTMPClient-on-Android-tp24367870p24367870.html
> Sent from the Red5 - English mailing list archive at Nabble.com.
>
>
> _______________________________________________
> Red5 mailing list
> Red5@osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org


_______________________________________________
Red5 mailing list
Red5@osflash.org
http://osflash.org/mailman/listinfo/red5_osflash.org

 « Return to Thread: RTMPClient on Android