[Red5] Adding function to oflaDemo
Michael Cassano
rummey at black-hole.com
Sun Jan 28 13:38:57 EST 2007
Joseph,
As you can see from the output I posted, the python script is running:
> Python appConnect: RTMPMinaConnection from 75.72.166.XXX:4340 to
> 216.70.XXX.XXX (in: 3394, out: 3073) array([], java.lang.Object )
> Python setting bandwidth limits
That is output from main.py (if I change that file, the output changes),
which handles the Application when someone connects. Yes, I can stream
and record with my Flash App.
Attached is demoservice.py (which is stripped down from what it is in
the red5 package), and my red5-web.xml file. When I start red5, I get
no errors. demoservice.py is in WEB-INF/classes/applications.
Thanks!
Mike
joseph wamicha wrote:
> Hi Mike,
>
> Are the other methods eg getListOfAvailableFLVs, working ok? Are you
> able to connect and stream?
> There's a chance your red5-web.xml is incorrectly configured and so you
> call the ordinary java classes rather than the python script and of
> course the java class doesn't have your new method. Please post your
> red5-web.xml file, so we can see.
>
>>Hello,
>
> I changed the red5-web.xml file for oflaDemo to use the Python scripts.
> I added:
>
> def toAdd():
> return '1'
>
> to demoservice.py, and restarted my server. In my Flash app I added:
>
> client_nc.call("demoService.toAdd");
>
> and when that line runs I get:
>
> Python appConnect: RTMPMinaConnection from 75.72.166.XXX:4340 to
> 216.70.XXX.XXX (in: 3394, out: 3073) array([], java.lang.Object )
> Python setting bandwidth limits
> [ERROR] 13455 pool-1-thread-5:(
> org.red5.server.service.ServiceInvoker.error ) Method toAdd not found in
> Error
>
> Any ideas?
>
> Thanks!
>
> Mike
> ~
>
> --
> C is forever.
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: red5-web.xml
Type: text/xml
Size: 2198 bytes
Desc: not available
Url : http://osflash.org/pipermail/red5_osflash.org/attachments/20070128/247fda61/red5-web.xml
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: demoservice.py
Url: http://osflash.org/pipermail/red5_osflash.org/attachments/20070128/247fda61/demoservice.bat
More information about the Red5
mailing list