Java Applet Error When Trying to Run in Browser

Hi,
I am trying to make a photo booth app but I can't seem to figure it out. I am trying to allow the app to have access to webcams in the local vicinity, gain the frame and then show it to the user after a special effect has been added to it.
I used Jpanel & swing components to make the app; however, my client is asking the app to be run in the browser. There is an access error when I use the applet to access the webcam. I am aware I need to sign the applet, even after doing this it won't work.
Thanks.
