The downside at the moment is, that every time when I execute the code above my playing audio-stream (e.g. tuneIn or Spotify) is stopped due to the start of DashCast ...
Is there a way to tell DashCast NOT to act like an Audio/Video Source but as just a (silent) url like wikipedia would show up, even when music is playing...
I am trying to get my home-automation showed up on my Google-Hub and managed it with this code:
assert isinstance(cast, pychromecast.Chromecast) # cast was set... cast.wait()
cast.quit_app() # does not change behaviour if active or not...
cast.dashcast = dashcast.DashCastController() dc = cast.dashcast cast.register_handler(dc) dc.load_url("http://192.168.178.30:8082/vis/myhome.html", force=True) time.sleep(5) cast.disconnect()
The downside at the moment is, that every time when I execute the code above my playing audio-stream (e.g. tuneIn or Spotify) is stopped due to the start of DashCast ... Is there a way to tell DashCast NOT to act like an Audio/Video Source but as just a (silent) url like wikipedia would show up, even when music is playing...
Any suggestions?
Thanks in advance, Matthias