wpilibsuite / WPILibPi

WPILib Raspberry Pi images designed for FRC (formerly FRCVision)
Other
89 stars 41 forks source link

Stream preview not displaying properly #34

Open NicolasNewman opened 5 years ago

NicolasNewman commented 5 years ago

Using a Raspberry PI camera module, I can only view the stream preview in the settings (http://frcvision.local:1181/) if I have the stream open in another tab (http://frcvision.local:1181/stream.mjpg) and refresh the settings page. Closing the stream tab and refreshing the settings again will cause it to no longer display again.

I'm using Chrome as my browser

PeterJohnson commented 5 years ago

Thanks! If you can try it with Firefox that would be great. We have seen an issue where sometimes the first few images from a camera after turning on a stream are corrupt, and that may be causing Chrome to just reject the whole stream. The second stream would be okay. If you refresh the settings page after the second tab is open, and then close the second tab, does the stream keep playing on the settings page?

NicolasNewman commented 5 years ago

I just checked Firefox and it worked perfectly.

After closing the stream tab in Chrome, I could still see the live stream in the settings tab. But once I refreshed the settings tab, it no longer displayed again.

PeterJohnson commented 5 years ago

This should be worked around by the keep open approach in 2019.2.1, but I'm going to leave this issue open as there's something underlying it in cscore.