[Red5] change default folder streams

Stefano sterams23 at gmail.com
Fri Jul 13 16:18:48 EDT 2007


Thanks alll, so, if I want to use an absolute paths i should wait 0.6.3release??

On 13/07/07, Niels Joubert <njoubert at yahoo-inc.com> wrote:
>
>  I just posted another tutorial on how to do custom stream directories:
>
>
>
>
> http://www.red5tutorials.net/index.php/Tutorials:Streaming_from_custom_directories
>
>
>
> 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
>
>
>  ------------------------------
>
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/red5_osflash.org/attachments/20070713/facdef62/attachment-0001.html 


More information about the Red5 mailing list