[Red5] re solvesToAbsolutePath() can return true

Daniel Rossi electroteque at gmail.com
Wed Oct 15 14:56:52 PDT 2008


No thats loading a list of files and returning it back to the flash  
application as a hasmap. The flash app then attempts to play the  
filenames back which the custom filename generator bean will pick up.

I'm not too sure where to explain the bit about the file: string in  
the docs but it took me a while to work that one out when i needed to  
load from an external path like a network drive. Its a standard spring  
resource loader thing, there is others as well like url: etc !



On 16/10/2008, at 8:49 AM, abshirf2 wrote:

>
> Nice. Does this method in DemoService not have an effect on the  
> directory
> oflaDemo will have a look at to playback flvs or mp3s?
>
> 	public Map getListOfAvailableFLVs() {
> 		IScope scope = Red5.getConnectionLocal().getScope();
> 		Map<String, Map> filesMap = new HashMap<String, Map>();
> 		try {
> 			log.debug("getting the FLV files");
> 			Resource[] flvs = scope.getResources("streams/*.flv");
> 			addToMap(filesMap, flvs);
>
> 			Resource[] mp3s = scope.getResources("streams/*.mp3");
> 			addToMap(filesMap, mp3s);
>
> 			
> 		} catch (IOException e) {
> 			log.error("{}", e);
> 		}
> 		return filesMap;
> 	}
>
> Shouldn't that be changed in some way or it doesn't matter? I ask  
> because
> this method will throw an error like the above.
>
> -- 
> View this message in context: http://www.nabble.com/resolvesToAbsolutePath%28%29-can-return-true-tp20002903p20003102.html
> Sent from the Red5 - English mailing list archive at Nabble.com.
>
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org




More information about the Red5 mailing list