mainsail icon indicating copy to clipboard operation
mainsail copied to clipboard

MJPEG-Streamer (non-adaptive) not working in Safari on macOS/iOS

Open JRHeaton opened this issue 3 years ago • 6 comments

Describe the bug:
When selecting the "MJPEG-Streamer" service option for my webcam, it shows a blank webcam view showing "0 FPS" in Safari on macOS and iOS, while it works on Firefox. The experimental adaptive streamer does work in Safari.

Expected behavior:
I would expect that the non-adaptive, "stable" streamer service would be functional in all browsers. This seems to be a regression from past versions of Mainsail. It does work as such in Firefox.

Screenshots:
Screen Shot 2022-02-15 at 6 38 18 PM Screen Shot 2022-02-15 at 6 38 15 PM

Logfiles:
klippy-3.log moonraker-3.log

JRHeaton avatar Feb 15 '22 23:02 JRHeaton

Any acknowledgment of this issue from the dev team? Seems like a pretty glaring issue for webcam users.

JRHeaton avatar Mar 03 '22 22:03 JRHeaton

I can relate to that.

mjpeg-stream is not working from iOS on iPhone, wether using Safari, Firefox, Chrome or Edge.

on Fluidd mjpeg-stream is working without any problems, as well on Octoprint it worked with the normal mjpeg-stream.

Hr-Ravn avatar May 08 '22 12:05 Hr-Ravn

only because it has the same name, it doesn't mean, that the background is the same. I will not support this mode for ios/safari browsers, because it don't support all JS functions for this mode and other modes also work on ios.

meteyou avatar May 09 '22 17:05 meteyou

today I had time to read up on this issue again and tried various fixes, but unfortunately without success.

it looks like it's a bug in safari itself and it needs to be fixed first: https://bugs.webkit.org/show_bug.cgi?id=215771

meteyou avatar May 12 '22 22:05 meteyou

I'm using "Adaptive MJPEG Streamer (experimental)" on iOS without issues: image

You can also try "UV4L-MJPEG". This shows and image, but I have not tried it. image

Screen shots are from v2.2-beta1, but I have been using on v2.1.2 as well.

Cheers -James

jalanjarosz avatar May 13 '22 10:05 jalanjarosz

In v2.2.0-beta2, we fixed some issues in UV4L mode. This should work also fine now.

meteyou avatar May 14 '22 07:05 meteyou

I'm closing this issue, because safari doesn't seem to fix this problem. furthermore there are enough other streamers that also run with safari and we want to expand the WebRTC support and leave MJPEG behind us.

meteyou avatar Jun 30 '23 21:06 meteyou