I just posted another tutorial on how to do custom stream directories:
http://www.red5tutorials.net/index.php/Tutorials:Streaming_from_custom_direc tories This tutorial focuses on the as-yet-unreleased 0.6.3 version of Red5. To sum it up, if you want to change the directory from /streams to /trailer only for oflaDemo, this is what you would do: - Create a CustomFilenameGenerator.java class under webapps/oflaDemo/WEB-INF/src in the package org.red5.server.webapp.oflaDemo - Copy the body of the org.red5.server.stream.DefaultStreamFilenameGenerator class to this new class. Be sure that the package and class name stays with the new class (i.e. don't copy the WHOLE file, just the contents of the class itself. - change the playbackPath to be /trailer instead of /streams in the variable in the class. (Joachim's or the aforementioned guide gives detail about how to abstract this out into the XML config files.) - Save the file and build it. (I'm assuming you have all of this running in Eclipse or the like) - in the webapps/oflaDemo/WEB-INF/red5-web.xml config file, add the following information: <bean id="streamFilenameGenerator" class="org.red5.server.webapp.oflaDemo.CustomFilenameGenerator"/> This should be enough to hook up your custom filename generator to oflaDemo, and use it to generate paths instead of the default one. I would recommend studying the two tutorials (the above one and Joachim's one at http://www.joachim-bauch.de/tutorials/red5/HOWTO-StreamCustomDirectories.txt /view), they go into detail on how to do this. I hope this works for you! -Niels Joubert _____ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Stefano Sent: Friday, July 13, 2007 7:55 AM To: [email protected] Subject: Re: [Red5] change default folder streams Ok, substantially I want to change the directory /streams with the directory /trailer in oflaDemo application. Someone can show me the code and the next steps for made it? Thanks! On 13/07/07, Dan Rossi <[EMAIL PROTECTED]> wrote: file:/123 Felix Nensa wrote: > A very simple aproach is to replace /streams with a symbolic link that > points to a directory of your choice. > > On 7/12/07, Stefano < <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED]> wrote: > >> Hi, I have a problem with the customization of folder for store the VOD >> file. I try to follow the HOWTO-StreamCustomDirectories file, but it doesn't >> work. >> >> If I want to change for eg. The directory from /streams to /123 what should >> I do?? >> >> Thanks!! :-P >> _______________________________________________ >> Red5 mailing list >> [email protected] >> http://osflash.org/mailman/listinfo/red5_osflash.org >> >> >> > > > _______________________________________________ Red5 mailing list [email protected] http://osflash.org/mailman/listinfo/red5_osflash.org
_______________________________________________ Red5 mailing list [email protected] http://osflash.org/mailman/listinfo/red5_osflash.org
