pychromecast icon indicating copy to clipboard operation
pychromecast copied to clipboard

WARNING:pychromecast.controllers:PAUSE command requested but no session is active.

Open Concrete18 opened this issue 4 years ago • 0 comments

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')

Concrete18 avatar Mar 28 '20 00:03 Concrete18