AlexxIT / WebRTC

Home Assistant custom component for real-time viewing of almost any camera stream using WebRTC and other technologies.
https://github.com/AlexxIT/Blog
MIT License
1.35k stars 161 forks source link

WebRTC for dummies #643

Open iz3man opened 5 months ago

iz3man commented 5 months ago

I tried to understand how this addon works, but am not sure I got it completely right. So I install the add-on and it can be installed only once. That would mean it's some kind of proxy, right? It look for configured cameras and then generates streaming urls that can be used by other apps (like webbrowsers, ...). Correct as well? If that is the case: Does it matter HOW those cameras are added to the system? Does it matter performance wise if those are MJPEG streams, or H264 streams, ... My question: What's best practise to add the cameras to HomeAssistant? And then I go to the server:1984 address and can choose between different kind of proxy-streams. Correct? And those are the streams I use to add when I use a camera-webrtc card in HA? Sorry, you see I'm a little confused, and didn't see these questions answered for me.

WeVolutionNet commented 5 months ago

I'm on the same knowledge level like you, so my answer might not be the best answer.

I managed to add my streams in HomeAssistant via the lovelace card.

At first the card was not showing. (Directly after I installed it in HA) After a quick reboot of HA followed by a full reboot of HA + "ctrl+F5" in my webbrowser the "WebRtc" card was available in Home Assistant. I used my rstp stream url in the form user:pwd@url to show the stream.

Afterwards this new entry was also listed on the:1984 list. I did not try/manage to get the streams from there into HomeAssistant.

Hope this helps for now...

iz3man commented 5 months ago

Thanks. Adding streams to my HA dashboard via webrtc-card was not the issue. That was quite easy, but I wanted to get some background knowledge, and info on what to do with the :1984 page. But it seems this is not seen any answers from the github owner for some time. :/

AlexxIT commented 4 months ago
  1. This is not addon. This is integration.
  2. Yes. This is proxy for media stream.
  3. Yes. It can stream video to browsers as well.
  4. MJPEG and H264 codecs are web-compatible.
  5. Best practice is to use web-compatible codecs in the camera settings.
  6. Web UI is used to debug. You can use this formats in the other software in your LAN