go2rtc icon indicating copy to clipboard operation
go2rtc copied to clipboard

Can not get WebRTC mode to work at all

Open joshtbernstein opened this issue 2 months ago • 9 comments

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?

joshtbernstein avatar Nov 06 '25 19:11 joshtbernstein

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.

mmatesic01 avatar Nov 07 '25 15:11 mmatesic01

This error isn't related to WebRTC issues. You need to check the application logs.

AlexxIT avatar Nov 08 '25 14:11 AlexxIT

The go2rtc logs? There's nothing in them that indicates an issue. The video just never loads.

joshtbernstein avatar Nov 08 '25 18:11 joshtbernstein

I’ve had the exact same problem for two weeks now

kastmgnru avatar Nov 15 '25 13:11 kastmgnru

The same issue in chrome based browsers, in firefox it works fine

krushev avatar Nov 16 '25 06:11 krushev

This is still an issue on the latest version.

joshtbernstein avatar Nov 28 '25 19:11 joshtbernstein

I'm seeing the same problem. I've been trying to add a tapo c110 to mainsail for days.

metropunisher avatar Dec 03 '25 05:12 metropunisher

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

LOVE2CMOL avatar Dec 14 '25 19:12 LOVE2CMOL

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 avatar Dec 15 '25 08:12 AlexxIT

@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

joshtbernstein avatar Dec 21 '25 22:12 joshtbernstein