chmod the file via client when it has been downloaded(?)
|
Hey,
I did try a google search of this but it was only for local applets etc. not web based applets.
So basically I am integrating my webclient with my client via Javascript capabilities.
"document.runescape.stopSong();"
etc. etc.
Except when I try to start the song again it tells me I have no File Permissions to the specific file.
I looked into the security policy and java gave me something like this:
Does anyone have a way to access this security policy from a web applet.Code:grant { permission java.io.FilePermission "${user.home}/474Cache/mp3/song.mp3", "read,write"; };
Thanks.
Nono you're missing the point, the applet has to have permission by the security policy. This is disabled by default and you have to grant permissions individually, it isn't a problem from the applet itself but from HTML -> Javascript -> Applet -> Remote File it is a problem.
I can stop the song etc. etc. I might make a work around where I pause the song and replay from the start when play is clicked instead of creating a new instance every time.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |