AlexxIT / go2rtc

Ultimate camera streaming application with support RTSP, RTMP, HTTP-FLV, WebRTC, MSE, HLS, MP4, MJPEG, HomeKit, FFmpeg, etc.
https://github.com/AlexxIT/Blog
MIT License
4.64k stars 378 forks source link

WebRTC link not working on Chrome on PC/but works on Android/Chrome #863

Open alenzurfluh opened 9 months ago

alenzurfluh commented 9 months ago

Hi

I'm using go2rtc with Frigate in docker. I've updated go2rtc to the latest version because I want to use ISAPI for 2-way audio I've have defined following stream for my hikvision doorbell camera

  streams:
     haustuere_rtps:
      - "rtsp://admin:XXX@CAM_HAUSTUERE:554/Streaming/Channels/101/"
      - "isapi://admin:XXX@CAM_HAUSTUERE:80"

When I try to open the WebRTC link from the go2rtc dashboard (i.e. http://ubuntu22:1984/webrtc.html?src=haustuere_rtps&media=video+audio) on my PC with Chrome or Edge the video won't load. But when I open the same link in Chrome on my Android mobile the video will load! I can open the MSE link on my PC in Chrome without an issues (http://ubuntu22:1984/stream.html?src=haustuere_rtps)

Any ideas what I'm doing wrong - why is the rtc link no working on my pc and laptop in Chrome?

When open chrome://webrtc-internals/ in Chrome I get the below - not sure if that helps.

image

madjx commented 7 months ago

Hello, I have the same question with the same behavior... And I don't know what I'm doing wrong :/

Horgul123 commented 5 months ago

Same problem, didn't find a way to show a stream in chrome on Windows

AlexxIT commented 5 months ago

You must have ports open on the server with go2rtc. If you using docker - check recommended config https://hub.docker.com/r/alexxit/go2rtc

Horgul123 commented 5 months ago

Found the problem: A Chrome extension (Disable HTML5 Auto-Play) prevented to show the stream