If you want truly absolute paths, then it's easier to wait if you can afford
to yes. For example, you have a big fat cross-mounted NFS filesystem with
all your video, while you're running Red5 on your blazing Xeon
multi-processor server, and you want to point your apps to paths on the NFS
drive, and windows doesn't allow you to make nice symbolic links like Linux,
wait it out for the new build.

 

The old releases DOES support custom relative paths, e.g. a different path
under the webapps/<app> folder

 

  _____  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Stefano
Sent: Friday, July 13, 2007 1:19 PM
To: [email protected]
Subject: Re: [Red5] change default folder streams

 

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

On 13/07/07, Niels Joubert < <mailto:[EMAIL PROTECTED]>
[EMAIL PROTECTED]> wrote:

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

 

  _____  

 

 





 

_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org

Reply via email to