Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Auto stream select #402

Closed
Daargajedan opened this issue Jun 25, 2018 · 7 comments
Closed

[Feature Request] Auto stream select #402

Daargajedan opened this issue Jun 25, 2018 · 7 comments
Labels
feature request next release fixed in develop branch and will be part of the next release

Comments

@Daargajedan
Copy link

Can we make snap server more intelligent, what i mean is that snap server could automatically manage incoming streams. For example i have Mopidy and Airplay. Mopidy is always playing and if i want to airplay something from my macbook i need to set this on my mac (Audio -> to Airplay) and in snapcast i need to change the stream.

It would be ideal if i can give a order number to the streams, and let snap cast decide which stream must be used. When both or multiple stream have audio input.

An other example:

Music is playing on my Raspberrypi and i'm sitting in front of my mac. Now I wanna AirPlay something to the same player. Now I need to go to snapcast to set it to AirPlay.(other stream). It would be Nice if snapcast recognize the other stream is playing so it sets it to that stream. If that stream is done Its going back to Mopidy.

@tgurr
Copy link
Contributor

tgurr commented Jul 16, 2018

I'd appreciate a feature like this as well. My use case is also streaming via Mopidy to ceiling speakers, but also having a stream for the doorbell which would be nice if snapcast would be able to automatically switch to as soon as it plays something and have it as some kind of stream with the highest priority.

@benedikt-bartscher
Copy link

I would love this feature for TTS of my Snips installation!

@vKnmnn
Copy link

vKnmnn commented Feb 7, 2020

in the meantime you can solve this by playing all sounds to a single pulseaudio server and have the pulseaudio server output all streams at once to snapcast. of course then you have to make sure only one source is playing audio.
I've done this for my snips installation. the cork-module should help with snips in particular.

@badaix
Copy link
Owner

badaix commented Mar 5, 2020

I would not change any logic in the audio routing or stream readers. What you need is some kind of meta streamreader, taking the input of other streams (in some fallback hierarchy manner: when the first one plays, use this signal, else if the second is playing, take this, ...).
Would be nice to have. Patches are welcome :)

@dxtich
Copy link

dxtich commented Aug 8, 2020

I wrote a little service in Python wich connecting to Snapcast's JSON-RPC API and switching to the new playing stream on Stream.OnUpdate.
@Daargajedan @tgurr @benedikt-bartscher Your welcome to use it.
https://github.com/d-xtich/snapcast_stream_switch

@Howaner
Copy link

Howaner commented Aug 15, 2020

I wrote a little service in Python wich connecting to Snapcast's JSON-RPC API and switching to the new playing stream on Stream.OnUpdate.
@Daargajedan @tgurr @benedikt-bartscher Your welcome to use it.
https://github.com/d-xtich/snapcast_stream_switch

Works wonderful! Thank you 👍

@badaix badaix added the next release fixed in develop branch and will be part of the next release label Sep 26, 2020
@badaix
Copy link
Owner

badaix commented Sep 26, 2020

Meta streams will be part of v0.22 => see #666

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request next release fixed in develop branch and will be part of the next release
Projects
None yet
Development

No branches or pull requests

7 participants