Closed nibty closed 1 year ago
I second this problem.
OS: Mac 10.14.6 Browser: Safari Version 14.0.1 (14610.2.11.51.10)
Same here, Big Sur x86, doesn't work on Safari, work on Chrome and Firefox, octopi and plugins up to date.
I found the origin of this issue in the Octoprint code. Removing the following block of code fixes the problem.
// safari bug doesn't release the mjpeg stream, so we just set it up the once
if (OctoPrint.coreui.browser.safari && currentSrc != undefined) {
return;
}
Here's a discussion on returning the functionality https://community.octoprint.org/t/mjpeg-streaming-in-safari-possible-improvements/16064
Just to inform, this also is a fix if you’re using an iPad.
Confirmed that this is still an issue in OctoPi Version 0.18.0; OctoPrint Version 1.6.1. Switching cameras in OctoPrint works for me in Chrome, but did not work in Safari. Commented lines 684-687 as mentioned by nifty above, reloaded OctoPrint, and camera switching works in Safari. Thanks for finding this. I spent hours trying to understand why I could see my cameras with local URLs and full URLs, but the MultiCam buttons on the Control tab would only ever show the first camera (in Safari). I never thought to try another browser.
I'm having the same problem, where is the file I need to edit?
Thanks
I'm having the same problem, where is the file I need to edit?
Thanks
Location:
/home/pi/oprint/lib/python3.7/site-packages/octoprint/static/js/app/viewmodels/
Thank you. I can't find but I think it's because im using a docker container!
Thank you. I can't find but I think it's because im using a docker container!
Just look for control.js then look for the line regarding safari.
Found it. just in case someone in Docker came looking for it the path of the control.js file is:
/usr/local/lib/python3.8/site-packages/octoprint/static/js/app/viewmodels/
Thank you again it work great!
Why hasn't this fix been merged ? It is quite annoying as commenting these lines fix the problem...
Why hasn't this fix been merged ? It is quite annoying as commenting these lines fix the problem...
Never understand why they never remove it, I keep having to remember to remove it for my octoprint to work.
Fixed in version 0.4.0rc3
Only the default cam works on Safari. Click the button for other cams does nothing.
OS: Mac OS 11.0.1 (20B29) Browser: Safari Version 14.0.1 (16610.2.11.51.8)