WebRTC icon indicating copy to clipboard operation
WebRTC copied to clipboard

EDIT: 3.x broke mobile access using nabucasa and HO Mobile

Open Claudio1L opened this issue 1 year ago • 13 comments

HI I'm having this issue:

with Nabucasa and 3.x update, images stuck in loading2 using webrtc-card on Android mobile. Using RTC only. It works with Apple in the same conditions. No significant logs. Just black screen. Going back to 2.3.1 works perfectly.

Tried multiple times with different 4g conditions and different device. Works with wifi but also there, very often, one or two card stuck in loading in a page where there are 4.

Following an example of the webrtc card config:

type: custom:webrtc-camera entity: camera.cam_strada mode: webrtc ui: true background: true

Any advice? Have you devices in similar condition (Nabu+Android+RTC) ?

Claudio1L avatar Feb 05 '23 08:02 Claudio1L

definitively 2.3.1 seems smoother also on iphone

Claudio1L avatar Feb 05 '23 08:02 Claudio1L

WebRTC on Android is no different from iPhone. You may have a different 4G network configuration. I guess you did not set up external access for WebRTC? Have you read docs? FAQ?

AlexxIT avatar Feb 05 '23 14:02 AlexxIT

ok, thanks.

I read everything related I found, also outside the official docs, but I was not able to solve. I did some more tests, instead, and I think is something related to my mobile operator. The issue is the same with any iphone and any android. At the time of the previous question I didn't swap sims. With the operator "HO mobile" works till 2.3.1, not 3.x. With "TIM" works 3.x also. Consistently. Any advice on what I can check? Tested both webrtc and MSE

Claudio1L avatar Feb 06 '23 19:02 Claudio1L

Try removing mode: webrtc from your card config and restart HA and the addon and see if that helps. I am experiencing issues when I set mode: webrtc so that could be the case for you too.

PablaV avatar Feb 06 '23 23:02 PablaV

Upgraded again to 3.0.2, removed mode: webrtc. no changes, same issue. There is something different between 3.x and 2.x that the mobile operator is filtering. TCP/UDP ports? no idea

Claudio1L avatar Feb 08 '23 07:02 Claudio1L

https://github.com/AlexxIT/WebRTC/issues/378

AlexxIT avatar Feb 08 '23 08:02 AlexxIT

#378

yes thanks, already seen. There is nothing I can use to solve. If it's a simmetric nat issue of the mobile operator, it should work at least with MSE+android, instead nothing. There is something else

Claudio1L avatar Feb 09 '23 06:02 Claudio1L

Check if MSE works for you in LAN. MSE may not work for some buggy cameras.

AlexxIT avatar Feb 09 '23 07:02 AlexxIT

yes

immagine immagine

the first one is an hikvision, the second one is a reolink camera

in Lan and via TIM 4G connections everything working, from desktop (firefox+Macos), android and iphone.

Claudio1L avatar Feb 10 '23 12:02 Claudio1L

So can you describe again your issue?

AlexxIT avatar Feb 10 '23 18:02 AlexxIT

sure.

  • 2.3.1, everything working.

    • LAN/Wifi: ok Desktop, ok android app, ok iphone app (webrtc)
    • 4G/Nabucasa: ok Android/iphone apps with 2x operators (TIM and HO Mobile) (webrtc)
  • 3.x:

  • LAN/Wifi: ok Desktop, ok android app, ok iphone app (webrtc/MSE)

  • 4G/Nabucasa: ok Android/iphone apps with TIM (webrtc/MSE)

  • 4G/Nabucasa: NOK Android/iphone apps with HO Mobile (webrtc/MSE)

basically, with 3.x black screen with HO Mobile regardless the device or the protocol I try to use. without significant logs.

Claudio1L avatar Feb 10 '23 20:02 Claudio1L

of course, for me 2.3.1 is perfect. The only concern is about issues with future HA releases

Claudio1L avatar Feb 10 '23 20:02 Claudio1L

Hello, i have a similar problem. Maybe i can attach it to this, but i am not using Nabucasa.

HA Mobile App in my WLan => No Stream HA Mobile Browser in my WLan => Stream HA Desktop Browser in my Lan => Stream

HA Mobile App with 4G => No Stream HA Mobile Browser with 4G => Stream

The system configuration is: Home Assistant 2023.7.2 Supervisor 2023.07.1 Operating System 10.3 Frontend 20230705.1 - latest

The card configuration is: type: custom:webrtc-camera url: rtsp://user:pw@IP:554/h264Preview_01_sub webrtc: true

I have changed webrtc true/false and url/entity in every condition with the same result described above.

grafik

Dc1975 avatar Jul 17 '23 12:07 Dc1975