Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Add is_playing_tv, is_playing_radio, is_playing_line_in properties with tests #225
@robwebset the playbar only has one input and intended for TV, so Line-In == TV. I'm not sure what to do with this patch.
"PLAYBAR connects to your TV using a single optical cable and plays all sources connected to the TV, including cable boxes and game consoles." -- http://www.sonos.com/shop/products/playbar
@robwebset I was looking for "the check for line-in already in SoCo?" you mentioned but I can't see it. There is no
I can see
Looks like if that's the difference then TV and Line-In are distinguishable since my patch here looks for TrackURI starting
@dajobe Sorry, yes you are correct - got confused - the question I meant to ask - is this the same as line-in, so will the same command check TV and Line in - in which case it should have a generic name to cover both cases - if they are different checks - then they should have different names :)
Edit: the code I use for line-in always switches - it doesn't check to see if it is already using line-in
2 similar comments
@dajobe I'm very sorry for not reporting back after having promised it. I've been busy with my 5 months old, still that's no excuse for not writing here that I was too busy.
In any case, I finally found a few moments to test the branch. I played something on line-in on my play 5 and it works the way it is supposed to:
>>> kontor.is_playing_tv False >>> kontor.is_playing_line_in True >>> kontor.is_playing_radio False