AmpliPi icon indicating copy to clipboard operation
AmpliPi copied to clipboard

Remove the concept of sources

Open linknum23 opened this issue 2 years ago • 2 comments

After creating a working example of #262 we started thinking of reworking the source/stream concepts in the system to handle background streams. Below is an "off the cuff" TODO list.

  • [ ] remove all sources
  • [x] #353
  • [x] #332
  • [ ] replace streams with the concept of an active stream, will this be the place where info moves?
  • [x] split the stream.connect/disconnect concept into activate/deactivate, connect/disconnect where connect connects a loopback device or RCA device to one of the 4 sources and activate starts a stream or background stream
  • [ ] replace source_id field in groups and zones with stream_id?
  • [x] #330
  • [ ] add some dynamic event handling that would happen (in example) when a user starts playing to 'Office' Spotify device

On the UI side we will need to start looking into:

  • [ ] #211
  • [ ] Active stream management cmds={restart, activate, deactivate} streams

linknum23 avatar Oct 24 '22 15:10 linknum23

This is a very good idea

rickballard avatar Nov 11 '22 15:11 rickballard

Initial work on this is being done in https://github.com/micro-nova/AmpliPi/tree/virt-streams which allows streams to be run in the background.

linknum23 avatar Feb 01 '23 21:02 linknum23