Camera issue with external access

I have managed to setup remote access with duckdns and port forwarding. Everything was working perfectly for a few hours but I noticed that my camera cards had about 6 seconds lag compared to 1 second on internal network.

I am using picture glance cards with webrtc camera for low latency. I noticed that I still had the preload stream option in the card settings which means that it is not using webrtc, hence the lag.

This happened once before, before I setup external access and it was resolved by deleting webrtc and reinstalling. I tried to do this again but now the camera cards do not load on external network. I get the blank card with the play button that is normal before the card loads. Everything else works externally and the cameras load fine on internal network.

I have tried deleting and adding the cameras and also the cards. I then tried using a frigate card but this also does not load. However if go to the frigate page I can get a live feed. It is only the cards that are not working.

Any suggestions how to resolve this would be greatly appreciated.

I have just found that if the card is set to auto it shows an image and updates every 10 seconds. If I set it to live there is no stream, just the blank card

The webrtc card itself says that when not on the local network extra steps need to be taken https://github.com/AlexxIT/WebRTC#webrtc-external-access

As far as the frigate card, this works fine for me (which “provider” are you using?)

1 Like

Thanks for the reply.

The way I understand it is that webrtc wont work externally without the extra steps but it should revert to mse automatically, this will give some lag which is what I had before the feed stopped loading.

I don’t get what has happened to stop the feed altogether when it was working for some time.

For frigate I am using home assistant provider.

I may have confused things a bit. I actually have 2 integrations, webrtc which works with a manual card setup or frigate, and rtsptoweb which works with glance cards.

I disabled rtsptoweb, the glance cards are working now but they lag by 6 seconds which I am not happy with.

The frigate cards are also working now and don’t really lag, but when I add 3 or 4 cards on one page then they buffer every few seconds.

So I am currently using the manual webrtc type cards and they are working great with no lag, but my preference would be to use frigate cards.

@crzynik thanks for pointing me in the right direction regarding webrtc external access. Followed the instructions and I now have the frigate cards working with webrtc and no lag or buffering. The only issue is the initial load time but I can live with that