Open vajonam opened 6 years ago
Getting a similar problem. Did you have any luck getting this to work?
This is a problem when you have docker or other network adapters, the discovery doesn't work correctly.
I got around it by specifying the IP of my chromecast which I know has dhcp reservation.
#!/usr/bin/python3
import sys
import logging
import pychromecast
cast = pychromecast.Chromecast('192.168.100.27')
cast.wait();
mc = cast.media_controller
mc.play_media('http://someurl.com/foo/my.mp3', 'audio/mp3')
mc.block_until_active()
mc.play()
I'm also seeing this on my network where we have a Jamboard. get_chromcasts() hangs and fails, but discover_chromecasts() works.
hi there,
i am not sure when this broke, but this used to work, not sure which update or change broke this.
Not sure what I am missing or changes. this not being done from inside a docker container but I have tried this on machines without docker installed at all.