Mar 05

JRuby + RED 5 = Ruby + RTMP

Tag: JRuby, RTMP, Red 5Derek Wischusen @ 12:51 am

JRuby is, in my opinion, one of the most exciting projects out there. Primarily because it makes it possible for Ruby developers to take advantage of all the technologies that have been built in Java. In particular, it makes it possible to take advantage of one of the other most exciting projects out there: Red 5.

Red5 is an Open Source Flash Server written in Java that supports:

  • Streaming Audio/Video (FLV and MP3)
  • Recording Client Streams (FLV only)
  • Shared Objects
  • Live Stream Publishing
  • Remoting

Red 5 is, or very soon will be, a viable free, open source alternative to Flash Media Server. Most important of all to the Ruby community is the fact that Red 5 recently added a scripting framework that makes it possible to use it with Ruby (via JRuby), as well as Javascript (via Rhino), Python (via Jython), and Groovy. Though, even if there was no scripting framework in Red 5, it should now be relatively easy to do using a simple wrapper class in Java that loads your Ruby classes using the new scripting framework in Java 6.

To get started with Red 5 and Ruby, first download a copy of Red 5, then check out this tutorial by Paul Gregoire.

If you want to try to use Rails with from the scripting framework in Red 5, then be sure to read the ‘Gotchas’ at the bottom of this page.

More to come on this in future posts.

11 Responses to “JRuby + RED 5 = Ruby + RTMP”

  1. Tim Lucas says:

    v. interesting. Getting up-and-running with Red5 is way too hard to encourage wide-spread adoption, so any articles you post will be of great value.

  2. Alex MacCaw says:

    Sounds great! If someone can make a package that seamlessly lets you use RED 5 and Ruby (I’ve heard it’s quite difficult to set RED 5 up) than I’m sure it’ll be v popular. Looking forward to more posts on the subject.

  3. Neil says:

    It is not too hard to setup if you use the .war version.

  4. Digigen » Blog Archive » Confabio.com, technology revealed says:

    [...] could also be solved using Red5. In doing so we would have to hack into those Java apps (or use Red5 Jruby ducktape). Also we would have to do database access in Java (And burn in DAO Factory Hell™). No [...]

  5. itwax.com says:

    Hey guys, if you are stuck somewhere with using red5 you can seek my professional or free help . Unless your problem is big and time consuming one, i will do it for free. I have developed several audio-video applications .

  6. Oscar Mejia says:

    Sounds great! I’ve been working with red5 for a while and it’s very interesting. I have developed some chats, IMs and video conference applications. We need more documentation for projects like red5 and jruby, but I think it;s a matter of time.

    Will be a pleasure helping to anybody with red5 stuff.

  7. Sunil Gupta says:

    Looking interesting, I have developed many applications using Red5 and it
    just works like a charm. Nice article

  8. http://red5flashserver.blogspot.com/ says:

    Red 5 is, or very soon will be, a viable free,
    open source alternative to Flash Media Server

    Very True

  9. About LCDS « It’s all about RIA says:

    [...] Derek Wischusen :: JRuby + RED 5 = Ruby + RTMP [...]

  10. Adobe LCDS « Flex Generation Weblog says:

    [...] Derek Wischusen :: JRuby + RED 5 = Ruby + RTMP [...]

  11. Video Chat and Rails | Afraha | Our Own Tiny Planet says:

    [...] Have you looked at this page: http://flexonrails.net/?p=64 [...]

Leave a Reply