We all love Chrome. Well, we used to. But time and time again our users reported to us that, after they switched to Firefox, mysterious webcam streaming problems went away, or the video stream loaded faster. And this is true on both smart phones and laptops. So try Firefox to see if your webcam streaming problem will go away.
If you are stuck with Chrome, you may want to try one of the workarounds to make it less annoying.
Workarounds for slow video loading on Chrome
Chrome is not the most video streaming-friendly browser. One annoying problem it has for some users is that the video takes 10 seconds or even longer to load. If you have this problem, the easiest solution is to switch to Firefox or Safari. Even IE Edge works better. However, if you still want to stick with Chrome, there are 2 workarounds for this problem. You only need to do one of them.
Open a Chrome tab and copy-paste
chrome://flags/#enable-webrtc-hide-local-ips-with-mdnsin the address bar.
The Chrome setting that says "Anonymize local IPs exposed by WebRTC." will be highlighted.
Change the option to "Disabled".
Restart Chrome to let the change take effect.
SSH to the Raspberry Pi. Here is how.
/etc/nsswitch.confwith your favorite editor.
#in front of the line
hosts: files mdns4_minimal [NOTFOUND=return] dns. Add a new line
hosts: files dns. So
... #hosts: files mdns4_minimal [NOTFOUND=return] dns hosts: files dns ...
- Restart OctoPrint.