How to play sound files ON the filesystem (not deployed on the server)?
I need soundManager to play arbitrary,pre-uploaded files that won't be deployed on the server so the url: '/path/OnTheServer/to.mp3' won't work for me. Is there any chance for me to use some kind of 'file://...' url to access these files ON the filesystem?
1
person has this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
Create a customer community for your own organization
Plans starting at $19/month
-
Inappropriate?Unfortunately flash/javascript does not have access to the filesystem for legitimate security concerns, so no you can't do this.
The best alternative I can think of would be to have a server on the client machines and then give them a full-copy of the app with the files on the server.
There may be a hack in one (or more) browsers that allows it but if you find it then they will patch it.
Otherwise what you are looking at is a standalone application, which could easily be accomplished through something like Adobe Air.
I have not tried SM with Air, but it might be worth looking into for such an app.
I’m interested
-
Inappropriate?Thanks for your comment and help bum51.
I managed a workaround to solve my problem (in a J2EE developing scenario): I made a Struts2 Action (almost like a Servlet) to serve Files from the filesystem on demand.
SM asks for /ServerFiles.action?name=name&someOtherParams: then my "servlet" goes for that file to the filesystem, outside my application server and SM is able to play it.
I found this way is better than what I tried to do at first when asking for help as I can code my own "security constraints" about which file is legal to be served and which not. (As you said, the way I was looking for accessing the filesystem is pretty risky for the server enviroment).
I’m satisfied
Loading Profile...



