GSVideo doesn't work in exported applet (AccessControlException)
in
Contributed Library Questions
•
2 years ago
I've got a sketch using GSVideo which runs perfectly when started from within the PDE, but raises an AccessControlException when running as an embedded applet:
So, is it possible to use GSVideo within an applet, and if so, how? If not, are there any alternatives? I'd like to avoid the movie library shipped with processing, since I'm on Linux and have no access to any QuickTime tools.
- Exception in thread "Animation Thread" java.security.AccessControlException: access denied
- (java.io.FilePermission /usr/lib read)
- at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
- at java.security.AccessController.checkPermission(AccessController.java:546)
- at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
- at java.lang.SecurityManager.checkRead(SecurityManager.java:871)
- at java.io.File.list(File.java:971)
- at codeanticode.gsvideo.GSVideo.libgstreamerPresent(GSVideo.java:179)
- at codeanticode.gsvideo.GSVideo.lookForGlobalGStreamer(GSVideo.java:162)
- at codeanticode.gsvideo.GSVideo.setLinuxPath(GSVideo.java:114)
- at codeanticode.gsvideo.GSVideo.init(GSVideo.java:70)
- at codeanticode.gsvideo.GSMovie.<init>(GSMovie.java:90)
- at SlitScanVideo$WholeMovieLoader.load(SlitScanVideo.java:106)
- at SlitScanVideo.setup(SlitScanVideo.java:198)
- at processing.core.PApplet.handleDraw(Unknown Source)
- at processing.core.PApplet.run(Unknown Source)
- at java.lang.Thread.run(Thread.java:662)
So, is it possible to use GSVideo within an applet, and if so, how? If not, are there any alternatives? I'd like to avoid the movie library shipped with processing, since I'm on Linux and have no access to any QuickTime tools.
1