micro-nova / AmpliPi

Whole House Audio System 🔊
https://amplipi.com
GNU General Public License v3.0
288 stars 23 forks source link

Feature: Auto stop streaming source after ~1 min of all connected zones/groups being muted #107

Open linknum23 opened 3 years ago

linknum23 commented 3 years ago

We will need to add a background thread to check for this condition. From a web application point of view there should be a play button to restart/reconnect the stream.

Question: Should unmuting a connected group/zone restart the stream?

bs42 commented 3 years ago

If implemented, please make this configurable, enable/disable the feature entirely and the timeout time for auto-stop. I do not want a 1 minute auto stop, maybe a 10+ minute, but for my usage a 1 minute auto-stop could be annoying.

linknum23 commented 3 years ago

That is completely reasonable. This is mainly to handle the condition of "why did we leave Pandora playing all night at Jason's house".

I agree that a sane default with this would be 10min with the option to disable entirely. One other thing to note is this only makes sense for streams that we have direct control over like Pandora and Internet Radio. Many of the other streaming sources like Plex, Upnp, Shairport, and Spotify Connect are controlled externally from AmpliPi.

linknum23 commented 2 years ago

We should also do something similar when all of the zones have been moved from a source.