If you know the exact model number of your laptop, you can look it up on HP's website. They should have a PDF manual that shows you all the components and how to disassemble them. From there you can find how the webcam is connected to the motherboard and check for a loose connection.