[Red5] Jruby scripting basic application creation process

Thomas Johnson tomfmason at gmail.com
Thu Dec 20 17:55:04 PST 2007


We need more documentation or examples of the scripting features in red5. I
have tried (unsuccessfully) several times to write basic applications using
the Jruby interface. The scripting how-to example(
http://mirror1.cvsdude.com/trac/osflash/red5/browser/doc/trunk/HOWTO-Scripting.txt)
is the only example of the scripting features in red5(that I can find). If
you follow the directions exactly as they are described the application will
fail to load. However, if you use the oflaDemo example and just
comment/uncomment the relative portions of the red5-web.xml the example
works fine.

I have tried to trace down what I was missing and found that the olfaDemo
application depends on the oflaDemo.jar in the application's WEB-INF/lib
directory. This jar contains a copy of the complied java classes from the
oflaDemo and the scripting sources. When I delete this jar the application
fails. So this means to me that the application depends on that jar and it
is not mentioned at all in the scripting how-to.

I used jad and decompiled the classes that were in the oflaDemo.jar and they
are exact copies of the java classes from the application. If you remove
them and re-create the jar, the application will fail. So, correct if I am
wrong but it appears that you first have to write the application in java
and then write a version in the scripting language of your choice. This
seems to be a major duplication of effort.

Any thoughts or suggestions would be great.

Thanks,
Tom
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/red5_osflash.org/attachments/20071220/49aee4ab/attachment-0001.html 


More information about the Red5 mailing list