@gkaur Check the anti-virus program settings & ensure it isn't blocking the camera and the same should resolve the issue, if this doesn't help, try the below steps:
here's a few steps to resolve the issue, start with checking for the webcam kill switch (if available on your model, if not: click here & follow the steps) and ensure its turned on,
That said, If your webcam has stopped working after installing a new update, you should uninstall the update and roll back to the older version. You will have to open Device Manager > right-click on the device > select Properties > switch to Driver tab > click on Roll Back Driver button > select Yes on the next window. After that, you need to restart your PC to check whether it is working.
If that doesn't work or there were no updates before the issue occurred, you might need to uninstall the webcam driver.
To do this, open Device Manager > right-click on the device > select Properties > switch to Driver tab > click on Uninstall Device button.
Restart your computer and then open Device Manager again and click on Action > Scan for hardware changes. (this would automatically reinstall the best drivers for it)
Once done, I suggest you install all the latest pending Windows updates as below and check if it helps.
Go to “settings” and click on “update and security”.
Under tab “Windows update”, click on the icon “check for updates”.
Then once you find the pending updates install it and check.
FOR DETAILS & FURTHER INSTRUCTIONS, USE THIS LINK: CLICK HERE
(By the end of this article all the issues should be resolved)
P.S: Welcome to HP Community 😉
Keep us posted,
If you would like to thank us for our efforts to help you,
Give us a virtual high-five by clicking the 'Thumbs Up' icon below, followed by clicking on the "Accept as solution" on this post,
Be alert for scammers posting fake support phone numbers and/or email addresses on the community. If you think you have received a fake HP Support message, please report it to us by clicking on "Flag Post".