View Full Version : Sound alert on image change.

07-31-2007, 01:00 PM
I've been working on a webcam of my drive way at home. (Can't link you to the scripts for privacy, sorry!) At the moment the webpage with the images simply loads the image (eg. /webcam2.jpg) and then refreshes the image ONLY every 5 seconds. (the image only changes when the webcam detects motion) This works fine - except that if I have the webcam page open in the background while other things are happening I don't realize that the image has changed. Is there anyway using Javascript (or PHP) to have a noize played (a beep or something) everytime the image changes?:confused: I thought an easy way to do it would be to have the javascript watch the filesize of the image and when the filesize changes for it to play a beep.mid - I've searched the internet and I can't find any way to do this, not even if I use a Java applet for the webcam. Can anyone offer me any help? I'm surprised none of the webcam systems I've looked at have incorporated this feature.

Thanks in advance!:)