hjdhjd / homebridge-unifi-protect

:video_camera: Complete HomeKit integration for all UniFi Protect device types with full support for most features including HomeKit Secure Video, and more. https://homebridge.io
Other
1.39k stars 84 forks source link

Streaming not working over high Latency connections (5G/4G). #1055

Closed BenePT closed 3 months ago

BenePT commented 3 months ago

Homebridge UniFi Protect Version

6.20.0

Homebridge Platform and OS

R Pie 4 Debian GNU/Linux Bookworm (12)

Homebridge Version

1.7.0

Node Version

18.18.2

UniFi OS Version

3.2.12

UniFi Protect Controller Version

3.0.26

Describe the problem

Streaming not working on a high latency connection like 4G/5G i.e. Times out. Works well in intranet over Wifi. App Unifi Protect works well under 5G/4G. Not working via Home App in iOS

Homebridge HBUP JSON configuration

{
    "controllers": [
        {
            "address": "10.0.30.30",
            "name": "UNVR",
            "password": "************",
            "username": "*******"
        }
    ],
    "options": [
        "Enable.Video.Stream.Only.Low",
        "Enable.Motion.SmartDetect",
        "Enable.Motion.Switch",
        "Enable.Video.Transcode.Hardware.D021F9521798",
        "Enable.Video.Stream.Only.Low.D021F9521798",
        "Enable.Doorbell.Trigger.D021F9521798"
    ],
    "platform": "UniFi Protect",
    "_bridge": {
        "username": "**:**:**:**:**:**",
        "port": 35768
    }
}

Relevant log output

Doorbell [G4 Doorbell Pro]: Streaming request from 10.0.30.22 (high latency connection): 640x480@30fps, 164 kbps. Hardware accelerated transcoding 480x360@15fps (Low), 200 kbps.
[04/04/2024, 22:35:02] [homebridge-unifi-protect] Doorbell [G4 Doorbell Pro]: Stopped video streaming session.

Acknowledgment that you are only running UniFi OS and UniFi Protect releases from the Ubiquiti Official release channel

hjdhjd commented 3 months ago

Appreciate the report, but streaming works just fine over high latency connections. 😄

I can’t do much with this report I’m afraid other than to state that streaming works fine, I use this very scenario every day. Some suggestions that might help:

Best of luck…you’re welcome to try the Discord as well, for some additional suggestions.

github-actions[bot] commented 3 months ago

This issue is locked to prevent necroposting on closed issues. Please create a new issue for related support requests, bug reports, or feature suggestions.