Would it be possible to access the live video stream by clicking on the Dashboard preview?
Currently, I have other tabs open in parallel to quickly access the ‹ live › video.
It’s a feature that interests me, and I’ll look into how to do it after updating my camera module.
We’ve discussed this live stream quite a bit in various forum topics; it’s quite technical, but I’d really like us to make it happen!
Concretely, we need to continuously read the stream and send each frame to the frontend via WebSockets.
Nothing too complicated, but it requires a lot of « fine-tuning » to find the right parameters so that it’s neither too resource-heavy nor too poor in quality.
Or simply open the stream in another tab? Or allow to put a personal link behind it, to the camera’s homepage?
I do not recommend making your cameras available on the internet, that’s the best way to get hacked
So we won’t highlight this behavior.
In Gladys 4, the goal is for Gladys to act as a « proxy » for your cameras. The image passes through Gladys, so you can keep your cameras local on your network, safe from the internet, and then you can access your camera images either via Gladys Plus, or via your gladys instance directly if you have exposed it!
While looking around out of curiosity, I came across this /homebridge-camera-ffmpeg, a library that allows adding cameras to homekit via ffmpeg (which we use in Gladys), and apparently they handle live streaming.
It’s interesting to see the code for the live part, it can help us implement this:
We agree!
I misexpressed myself: I only use the Gladys interface locally and if I need to have a preview from outside, I go through Telegram (which is pretty cool by the way). I hadn’t even considered sending the stream outside my walls… That said, if it’s possible…