gozoinks / homebridge-camera-ffmpeg-ufv

UniFi Video plugin for Homebridge
https://www.npmjs.com/package/homebridge-camera-ffmpeg-ufv
Other
76 stars 20 forks source link

rtsp port moved to livePortSettings #4

Closed gozoinks closed 6 years ago

gozoinks commented 6 years ago
     "livePortSettings": {
        "rtspEnabled": false,
        "rtspPort": 7447,
        "rtmpEnabled": false,
        "rtmpPort": 1935,
        "rtmpsEnabled": false,
        "rtmpsPort": 7444
      },
gozoinks commented 6 years ago

need to change 'systemInfo.rtspPort' to 'livePortSettings.rtspPort' at https://github.com/gozoinks/homebridge-camera-ffmpeg-ufv/blob/09585c8798ecdbcdd3eeacd341e95f29c193786a/index.js#L96

gozoinks commented 6 years ago

would need to check version, since this is an api-breaking change

gozoinks commented 6 years ago

There's actually a new rtspUris property that handles all this. Okay so we need to detect the version of the bootstrap JSON and use this property if it's available.

gozoinks commented 6 years ago

Fixed in https://github.com/gozoinks/homebridge-camera-ffmpeg-ufv/commit/8e8116ea8dcb0dd3c0f64bfa7d3160b0441e0b02