pychromecast
pychromecast copied to clipboard
Cannot pause when using media controller
I would expect that when casting using the media controller that I would be able to pause it using the google home app, but I can't. The code I am using to cast is:
chromecasts, browser = pychromecast.get_listed_chromecasts(
friendly_names=[device_name]
)
cast = chromecasts[0]
cast.wait()
mc = cast.media_controller
mc.play_media(url, media_type, title=title)
mc.block_until_active()
The media is on network accessible file server on my local network. It does play, but the only option in the Google Home app is to stop the media controller app entirely.
Is there a way to make it so media can be paused?
This is probably a limitation in the default media receiver. Maybe you could try with the BubbleUPNP app instead?