deepch / RTSPtoWeb

RTSP Stream to WebBrowser
MIT License
1.17k stars 284 forks source link

WebRTC is not working from Docker while other protocols do #392

Open gehirndienst opened 8 months ago

gehirndienst commented 8 months ago

I'm running the default docker container on Windows 11 with the following command:

docker run -p 8083:8083 -d --name rtsp-to-web ghcr.io/deepch/rtsptoweb:latest

I only have to replace the default config.json with my own because the default stream doesn't work at all. Then I saw on the webpage by clicking "all" that only webRTC is not working while other protocols do.

I see the following error message in the console:

WebRTC Client Offline call=WritePacket channel=0 func=HTTPAPIServerStreamWebRTC module=http_webrtc stream=27aec28e-6181-4753-9acd-0456a75f0289

What could be the reason for that?

bitraker commented 8 months ago

I want to add I see a similar issue. I use the latest docker image, and have added a RTSP stream, from Unifi Protect. WebRTC which is the stream conversion I need for home assistant does not work, but MSE does.

DcFamas commented 7 months ago

Same problem here.

allenporter commented 7 months ago

See the readme for an example of running rocker. You didn't set to use the host network.

DcFamas commented 7 months ago

Thats true, sorry I thought the synology container is fully configured. So for synology users; just change the network to host not bridge. Thanks @allenporter !