home-assistant-libs / pychromecast

Library for Python 3 to communicate with the Google Chromecast.
MIT License
2.54k stars 379 forks source link

Cannot pause when using media controller #435

Open rhyst opened 3 years ago

rhyst commented 3 years ago

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?

emontnemery commented 3 years ago

This is probably a limitation in the default media receiver. Maybe you could try with the BubbleUPNP app instead?