I’ve struggling for sometime to configure HA so i could view my cameras stream on mobile app.
my main issue - not able to view camera stream on mobile.
setup:
Internet connection - fiber (1Gb download ,100 Mb upload).
4 * Dahua camera 4mp - all set to 1080P with AAC 8000 ,bitrate on low-medium .
HA running on docker - latest version
go2rtc - docker , all cameras define there .
HA cameras configure as generic using go2rtc rtsp urls
Chrome as browser through all tests
all test done with picture-glance card
Mobile - samsung S20+
- platform: generic
stream_source: rtsp://192.168.1.113:8554/front_go2rtc
name: front_camera
Tried below:
“custom-card:webrtc”
very bad performance,
video stream stuttering , disconcertion icon appear most of the time .
also when connecting to HA locally - both from mobile and browser.
Using go2rtc webgui - running smoothly + sound.
http://192.168.1.113:1984/stream.html?src=front_camera_go2rtc
Second:
HA camera configure as generic with go2rtc rtsp urls
On HA - RTSPtoWebRTC integration connecting to go2rtc as rtsp server .
On browser - open HA → working perfectly , except no audio.
On mobile → video is completely stuck (picture freezing)
Same result for webgui - running smoothly + sound.
http://192.168.1.113:1984/stream.html?src=front_camera_go2rtc
Another try:
HA cameras configure as generic with go2rtc rtsp urls
running RTSPToWeb on docker
on HA- RTSPtoWebRTC integration added and connect to RTSPToWeb as rtsp server .
RTSPToWeb - running smoothly , no sound
On browser - HA → video looks good - no audio.
On mobile → video is completely stuck (picture freezing)
from RTSPToWeb log - i see below happening right when using mobile app and trying to view the cameras.
(not sure it’s related)
2022/12/22 22:52:49 Set ICEServers [stun:stun.l.google.com:19302]
2022/12/22 22:52:49 Set ICEServers [stun:stun.l.google.com:19302]
time="2022-12-22T22:53:19Z" level=error msg="WebRTC Client Offline" call=WritePacket channel=0 func=HTTPAPIServerStreamWebRTC module=http_webrtc stream=camera.front_camera
time="2022-12-22T22:53:20Z" level=error msg="WebRTC Client Offline" call=WritePacket channel=0
Also tried removing WebRTC integration while test RTSPtoWebRTC -->RTSPToWeb
with same result.
Would really appreciate what could be the problem,
and what would be the right approach so i be able to view the cameras from the app.