Robin Bultot (Woedend!) wrote:
I'm trying hard to understand the simple recorder example..
The strange thing is that I can't find the line where it says record to 
"oflaDemo/streams"

It looks there is allmost nothing in the Application.java for 
configuring the recording?

  
Hi you need to implement the IStreamFilenameGenerator class

then add a method like

private String getStreamDirectory(IScope scope) {

        //return "E:\\CamsArchive\\";
        //log.info("Calling archivePath property " + this.archivePath);
        //log.info("Calling interal private var someVar " + this.someVar);
        //return !archivePath.equals("") ? archivePath : "CamsArchive/";
        return "CamsArchive/";
    }
   
    public String generateFilename(IScope scope, String name) {
        return generateFilename(scope, name, null);
    }

    public String generateFilename(IScope scope, String name, String extension) {
       

       
        String result = getStreamDirectory(scope) + name;
       
        //if (!archiveFileDateFormat.equals(""))
        //{
            //log.info(archiveFileDateFormat);
            //DateFormat date = new SimpleDateFormat(archiveFileDateFormat);
            DateFormat date = new SimpleDateFormat("yyyyMMdd");
            String appendDate = date.format(new Date());
            result += "_" + appendDate;
    //    }
       
        if (extension != null && !extension.equals(""))
            result += extension;
        return result;
    }


as you can see im still trying a way to use config settings for the path, however the config setup is poxy and requires alot of fiddling with web.xml, red5.properties and setter methods, even after that those methods were not even able to get the settings. im not an expert with spring so once i work that out ill post it.
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org

Reply via email to