rtsp2web
avico78 opened this issue · comments
On HA - add RTSPtoWebRTC Integration which point to RTSPtoWeb docker .
RTSPtoWeb WebUI - webrtc stream not working.
on HA - not working , video freezing
getting error :
rtsp2web | time="2022-12-28T21:56:20Z" level=info msg="Success connection RTSP" call=Start channel=0 func=StreamServerRunStream module=core stream=camera.salon_desk_camera
rtsp2web | 2022/12/28 21:56:20 Set ICEServers [stun:stun.l.google.com:19302]
rtsp2web | 2022/12/28 21:56:47 Set ICEServers [stun:stun.l.google.com:19302]
rtsp2web | time="2022-12-28T21:56:50Z" level=error msg="WebRTC Client Offline" call=WritePacket channel=0 func=HTTPAPIServerStreamWebRTC module=http_webrtc stream=camera.salon_desk_camera
It looks like network issue but couldn't find a way make it works ,
rtsp2web docker-compose:
networks:
dockers_inframain:
external: true
services:
rtsp2web:
container_name: rtsp2web
image: ghcr.io/deepch/rtsptoweb:latest
networks:
- dockers_inframain
ports:
- 8083:8083
restart: always
volumes:
- ./config.yaml:/config/config.json
Note , on network "dockers_inframain" I have traefik running as RP + Home assistant .
docker-compose traefik:
traefik:
image: traefik:v2.4.7
container_name: traefik
networks:
inframain:
ipv4_address: 172.29.0.4
restart: always
command:
- --log.level=INFO
- --log.filePath=etc/traefik/log/traefik.log
- --accessLog.filePath=etc/traefik/log/access.log
- --accessLog.bufferingSize=100
- --providers.docker=true
- --providers.docker.exposedbydefault=false
- --api
- --api.insecure=true
- --entrypoints.traefik.address=:8888
- --entrypoints.web.address=:80
- --entrypoints.web.http.redirections.entrypoint.to=websecure
- --entrypoints.web.http.redirections.entrypoint.scheme=https
- --entrypoints.websecure.address=:443
- --entrypoints.websecure.http.tls.certresolver=myresolver
- --certificatesresolvers.myresolver.acme.dnschallenge=true
- --certificatesresolvers.myresolver.acme.email=${CF_API_EMAIL}
- --certificatesresolvers.myresolver.acme.storage=acme.json
- --certificatesresolvers.myresolver.acme.dnschallenge.provider=cloudflare
#usually without it
# network_mode: host
ports:
- 80:80
- 443:443
- 8888:8888
environment:
- CF_API_EMAIL=${CF_API_EMAIL}
- CF_API_KEY=${CF_API_KEY}
volumes:
- /etc/localtime:/etc/localtime:ro
- /var/run/docker.sock:/var/run/docker.sock
- ./traefik/acme.json:/acme.json
- ./traefik/:/etc/traefik/log/
#for accessing non docker application (qnap)
- ./traefik/dynamic.yaml:/dynamic.yaml
labels:
traefik.enable: true
# Dashboard
traefik.http.routers.traefik.rule: Host(`traefik.${DOMAINNAME}`)
traefik.http.routers.traefik.entrypoints: websecure
traefik.http.routers.traefik.service: api@internal
traefik.http.routers.traefik.middlewares: auth
traefik.http.middlewares.auth.basicauth.users: ${TRAEFIK_USER}:${TRAEFIK_PASS}
Hi, please don't use this. It's deprecated and I'm not able to maintain this anymore.
Please check this out instead:
https://datarhei.github.io/restreamer/