We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSound,  Music Libraries › Ess no sound in applet
Page Index Toggle Pages: 1
Ess no sound in applet (Read 866 times)
Ess no sound in applet
Aug 20th, 2008, 9:35pm
 
Hi,

I'm trying to run an application that make an FFT from a microphone.
It's run very well in the Processing developpement environement but not when I export it for my web broswser(Firefox3).
I've got this message in the Java Console:

Exception in thread "Processing Animation Thread" java.security.AccessControlException: access denied (javax.sound.sampled.AudioPermission record)

at java.security.AccessControlContext.checkPermission(Unknown Source)

at java.security.AccessController.checkPermission(Unknown Source)

at java.lang.SecurityManager.checkPermission(Unknown Source)

at com.sun.media.sound.JSSecurityManager.checkRecordPermission(Unknown Source)

at com.sun.media.sound.DirectAudioDevice$DirectDL.implOpen(Unknown Source)

at com.sun.media.sound.AbstractDataLine.open(Unknown Source)

at krister.Ess.Ess.startInput(Ess.java:356)

at krister.Ess.AudioInput.start(AudioInput.java:90)

at base2.setup(base2.java:35)

at processing.core.PApplet.handleDraw(PApplet.java:1392)

at processing.core.PApplet.run(PApplet.java:1320)

at java.lang.Thread.run(Unknown Source)

I have to do something in FireFox, in my code?

Thanks for your help.

Re: Ess no sound in applet
Reply #1 - Sep 11th, 2008, 1:09am
 
hi

to run online applets that access your microphone you must first sign your applet. here is a little tutorial on how to do that: http://www.tree-axis.com/Ess/signed_applets.html

hope that solves it
Page Index Toggle Pages: 1