This is a pure coincidence, I noticed the same this morgning for a longer period of time and was planning to post this too.
I’m using go2rtc for a while now, just plain RTSP camera’s into the integration (manually added), 4 camera’s originate from the mqtt-ring plugin (but no live feed on my loveance dashboard), and they keep working but the one from my Foscam experiences exactly the same as @rogerquake is describing (this one has a live feed on my dashboard). The loveance card doesn’t work anymore. There is just no image. Refreshing page sometimes helps, but not always. Sometimes I need to restart the HA container, sometimes the Go2RTC container helps. There is no apparent error in the logs of the Go2RTC neither is there any entry in the logs of HA.
I’m using an iPad, iPhone and Windows 11 with Chrome as endpoints. They all have the same issue. My question would be the same; how do I go into troubleshooting mode. I already have added the logging part to Go2rtc, but nothing goes by. And besides that; my best bet would be it has more to do with the loveance card than Go2rtc.
I was trying to get iframes to work, but I’m having some trouble exposing the api using nginx. The iframe works great if I use the local link, http://192.168.0.201:1984/webrtc.html?src=baby_cam_1, but that obviously doesn’t work remotely.
I tried exposing 192.168.0.201:1984 as a subdirectory of my domain using nginx and wasn’t able to get it working. I’m guessing there may be some special nginx settings that I have to put in, but I’m not sure exactly which. I tried setting the custom location without any special settings and got a 404 error. I then tried the following settings and also got a 404 error.
Hey @nprez83 , this is how I’ve got mine setup and it works. Although I can’t get 2-way audio via Home Assistant yet (However, 2 way audio works by going directly to the url: https://mydomain.org/go2rtc/webrtc.html?src=frontdoor )
I just need to figure out how to get 2 way audio working through Home Assistant!
I’m guessing that has to do with how you have your cameras added to home assistant. If you use an iframe it should be the same as just using this directly.
Yeah I’m aware it needs to be https for microphone to work, my cert is also letsencrypt - I’m using the Swag docker container for my nginx reverse proxy solution.
I’ve attempted the iframe & 2-way audio on both Firefox & Edge on Mac and Android Companion app & Chrome on my phone. None of them work, I just see the video feed but no 2-way communication.
This is perfect! Works like a charm. Between having my iframes working now, and the recent fix to the Nest audio in beta 6, I now have two options for my cameras:
Skip the RTSPtoWeb integration, use built in conversion for Nest cam, and iframes for my Foscams
Use RTSPtoWeb integration, which allows the Foscams to work right off the bat, and use transcoding for Nest Cam.
In order for this to work without the rewrite, I Believe you would have had to change your ‘basedir’ for the api in the go2rtc config. Revert it and try the rewrite I used instead.
I didn’t have to make any adjustments to ‘basedir’ - the config above that I posted worked with the default go2rtc setup.
I tried your nginx config with the rewrite, it works fine but still doesn’t let me do 2-way audio inside Home Assistant itself Thanks for the info though!
webrtc integration dont work for me anymore (continues reconnection issues) and i’m trying to move to this project.
can someone make a foolproof tutorial on how to make cards from rtsp? I have read the whole topic but I still do not understand how to do it. I write the steps that I have managed to do so far:
I have successfully installed go2rtc
I added all rtsp streams as generic camera
these cameras have appeared on the go2rtc homepage
now I don’t know how to insert them in the cards, because the only entities that appear to me are the generic ones and not those of go2rtc
There’s nothing more you need to do. your picture glance or camera cars will connect with webrtc. If you experience ‘no audio’ or want to customize it further, then you can using the go2rtc.yaml.
I’ve finally got 2-way audio working via Home Assistant!
I created this go2rtc.html file (that points to my Go2RTC https webrtc page) and stored it under /www in my HA directory. This has the additional option "allow=“microphone *;” which activates the microphone allowing 2-way audio.
That’s interesting. I never thought to ask but what kind of phone?
I read you were on a Mac. All apple devices? Trying to understand the commonality because all of my devices prompt for microphone permissions.
Android: chrome and companion app
Linux: chrome
Doesn’t your html embed an iframe in an iframe? Fyi that you can copy all the html pages from go2trc GitHub and put them in your www directory and run it directly from there with the "static_dir parameter.
Hey Rob,
I’m using a Samsung S20+ phone, tested with both Chrome & companion app.
For desktop I’m using macOS & Firefox & Edge.
Yeah the html embeds an iframe within an iframe (Inception lol), but for some strange reason it works! Otherwise I haven’t had any success getting the microphone permission prompt!
Good shout about manually copying the html pages, I had considered that but figured the current way I’ve set it up would be easier for future go2rtc updates etc.
I’ve tested things further, I notice that the 2-way audio doesn’t work EVERY time I attempt it; the microphone is active on my device as per the built in OS indicators but no audio comes out of my doorbell. I suspect this is a go2rtc issue however.
One last mention. You can use card_mod to embed iframes manually if you’re using it in a popup or similar. Still inception iframes but at least you don’t have some extra code in your www directory.