Can not get WebRTC mode to work at all
http://[go2rtc_ip]:1984/stream.html?src=[stream_name]&mode=webrtc
MSE works fine, but when using WebRTC I just get a loading screen. No errors in the go2rtc log (even with debug) and the only error in the browser console is this (but I'm not sure if it's related):
Access to internal resource at 'https://alexxit.github.io/go2rtc/manifest.json' from origin 'http://[go2rtc_ip]:1984' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
I've tired:
- go2rtc: Docker (host networking)
- go2rtc: Home Assistant Add-on
- go2rtc: Home Assistant Integration
- go2rtc: Home Assistant built-in (port 11984)
Browsers:
- Edge (macOS)
- Edge (Windows)
- Safari (macOS)
Cameras:
- Unifi RTSP (rtsps and rtspx)
- Dahua ONVIF
I'm not really sure what else to check at this point?
I have the same issue in with HA go2rtc addon. MSE works, Webrtc mode don't work. Didn't have such issues in the past.
This error isn't related to WebRTC issues. You need to check the application logs.
The go2rtc logs? There's nothing in them that indicates an issue. The video just never loads.
I’ve had the exact same problem for two weeks now
The same issue in chrome based browsers, in firefox it works fine
This is still an issue on the latest version.
I'm seeing the same problem. I've been trying to add a tapo c110 to mainsail for days.
I'm having the same issue. I checked the logs, and ffmpeg is encoding normally, but no video is displayed—only a loading screen. There are no errors on the web page. I noticed that after the handshake, the WebSocket protocol is not exchanging any data.
New req I've already resolved it. Refer to the documentation. Config filters https://github.com/AlexxIT/go2rtc/blob/master/internal/webrtc/README.md
Google Chrome has nice debug tool - chrome://webrtc-internals/. If you run it before opening go2rtc streaming page, you can see table of IP candidates there. And check if they correct.
@AlexxIT That's helpful.
I tried to load a stream and see the following:
ICE connection state: new Connection state: new => "closed" Signaling state: new => "have-local-offer" ICE Candidate pair:
There's nothing showing up under ICE candidate grid