Most likely a hardware problem with the camera. You could try going to HP and downloading the driver for the camera and installing. The only other options is to have it repaired, buy a USB camera and use that instead of the built in one.
It could be a simple as a loose cable but that still would require opening the PC and checking the cable.