Camera stream pauses until a refresh

Camera model
Raspberry pi HQ camera and Wyze Cam
What is the problem?
I can see the stream of the camera both on Octoprint and on Cura. However, after about 1 minute, the stream freezes. I reload the page (or switch tabs in Cura) and the stream continues until it pauses again.

Additional information about your setup (OctoPrint version, OctoPi version, ...)
1.6.1 Raspberry pi 4B

Hi Francis,

I posted solution to this issue in Webcam freezing after a few seconds - #5 by antonf

TL;DR: open /etc/systemd/system/webcamd.service on your Pi and change line containing Type=forking to Type=simple, save the file and run systemctl daemon-reload; systemctl stop webcamd; systemctl start webcamd