Unable to view camera, no element "gtksink"

I have an integrated camera that worked fine after installation, but suddenly stopped at some point, I don’t know when, since I wasn’t checking it often.

I’m on KDE.

When I try clicking Camera it gives me
Unable to view camera, no element “gtksink”

and then
No supported camera found. Connect a webcam or other supported video device to take photos and video.

The thing is that it seems to work in messenger calls in chrome. So I’m confused why this is happening.