potmat / homebridge-google-nest-sdm

A Homebridge plugin for Google Nest devices that uses the Google Smart Device Management API. Supports Cameras, Doorbells, Displays, and Thermostats. Includes support for HomeKit Secure Video.
ISC License
148 stars 17 forks source link

Extend Camera Stream #136

Open ellisonpatterson opened 9 months ago

ellisonpatterson commented 9 months ago

I was looking at the device access API, and saw that you can indeed extend the feeds lifetime (wired) with this call: https://developers.google.com/nest/device-access/api/camera-wired#extend_a_live_stream

Couldn't a timer just be created to call that every few minutes and stop the timer when the stream ends? Even says its ignored for battery-powered devices so you wouldn't have to check if its wired or not.

What do you think?

Thank you!

potmat commented 8 months ago

@ellisonpatterson: Yup that's something I'll have to get around to doing one day.

Unfortunately the generation 1 cameras have a different mechanism which seems to be broken: https://stackoverflow.com/questions/68433468/how-to-properly-use-the-extendrtspstream-command-in-googles-nest-device-acces