views:

320

answers:

1

I've just finished putting together a basic flash video chat client that publishes the camera to a stream and receives a similar stream from another client. (Something in the spirit of this blog post.)

The streams are being pub/sub'd to the "oflaDemo" that ships with Red5.

This seems to work fine for my prototype, but I'm concerned about having to use something with "demo" in the name if I were to roll this chat application into production. It seems that the alternative is to essentially re-write that demo, perhaps with a few more features, which doesn't seem right in order to take advantage of one of Red5's core functionalities.

So, my question is: what is standard/best practice for production live streams in Red5? Is the oflaDemo used? Do custom stream brokers have to be written? If I don't host it myself, do most hosts have their own (production-quality) version of oflaDemo?

+1  A: 

That demo was written for a conference quite some time ago and you are certainly welcome to use it. Many people use both the server and client side code to base their own code upon and this is also just fine and within the LGPL license. If you want to simply rename and deploy the application under another name, simply do a global search and replace for oflaDemo and repackage the classes. If you need further detail, just post a comment.

Mondain
Thanks for the input. I guess the real gist of my question is whether Red5 can do this functionality (or anything, really) "out of the box" or whether you have to code an application on top of the basic Red5 server?
Greg Harman
Red5 "out-of-the-box" for 1.0 or current trunk includes two applications "live" and "vod". These allow live streaming and on-demand viewing without the need to install anything. Implementers that want to serve media files simple need to drop them in the correct location (usually the streams folder under the app in question by default). To broadcast live someone need only load the provided publisher / viewer demo or any of the "simple" swf applications.
Mondain
I see, those will be helpful. But current production release is still v0.9.1 so for the stable release you'd have to use something like oflademo?
Greg Harman
Any of the apps noted here would be ok for production, so long as you understand that they don't have any built-in security. The demos and samples are "wide-open". I answered a security related red5 question here: http://stackoverflow.com/questions/1702729/red5-security-tutorial
Mondain