[Red5] change default folder streams

Manuel R.G. info at vengava.com
Thu Aug 14 12:59:00 PDT 2008


Hi RTG RTG RTG

Can this help you?

http://www.red5tutorials.net/index.php/Tutorials:Streaming_from_custom_directories



2008/8/14 RTG RTG <rtgrtgrtg at googlemail.com>

> Hi, I ran through this topic and the related tutorials, but how is it
> possible to aggregate ressource locations which go deeper than just the root
> directory?
> We have /data  as a mount to nfs and based on the user id and file id
> requested passed to the client I want to calculate the subdirs
> /data/<userid>/<file>.flv
> Is the IStreamFilenameGenerator the right place, and will it be able to
> resolve  files underneath CustomFilenameGenerator.playbackPath
>
> RTG
>
>
> 2007/7/13 Niels Joubert <njoubert at yahoo-inc.com>
>
>>  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:* red5-bounces at osflash.org [mailto:red5-bounces at osflash.org] *On
>> Behalf Of *Stefano
>> *Sent:* Friday, July 13, 2007 1:19 PM
>> *To:* red5 at osflash.org
>> *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* < 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
>>
>>
>>  ------------------------------
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> Red5 mailing list
>> Red5 at osflash.org
>> http://osflash.org/mailman/listinfo/red5_osflash.org
>>
>>
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/red5_osflash.org/attachments/20080814/3191a705/attachment.html 


More information about the Red5 mailing list