3

I have an applet that reads from the microphone with that code

(defn mic []
  (let [info (DataLine$Info.
              (get-class)
              (get-format))
        line (AudioSystem/getLine info)
        out (ByteArrayOutputStream.)]
    (.open line)
    (.start line)))

it is signed with "$ jarsigner name-of-project-X.X.X-SNAPSHOT-standalone.jar seesaw" but it still fails to open from browser When i grant "record" permission(java.policy file) and open it with appletviwer it works perfectly. how can i get it work within the browser without a policy file?

Andrew Thompson
  • 168,117
  • 40
  • 217
  • 433
tolga
  • 51
  • 2

0 Answers0