pychromecast
pychromecast copied to clipboard
WARNING:pychromecast.controllers:PAUSE command requested but no session is active.
I am not sure why I get the this error. WARNING:pychromecast.controllers:PAUSE command requested but no session is active.
import pychromecast
ChromeCasts = pychromecast.get_chromecasts()
cast = next(cc for cc in ChromeCasts if cc.device.friendly_name == "Shield")
# cast = next(cc for cc in ChromeCasts if cc.device.friendly_name == "Bedroom Home")
cast.wait()
print(cast.device)
mc = cast.media_controller
mc.play_media('http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4', 'video/mp4')