Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not work with Google home mini, #388

Open
blurkis opened this issue Jan 22, 2020 · 4 comments
Open

Does not work with Google home mini, #388

blurkis opened this issue Jan 22, 2020 · 4 comments

Comments

@blurkis
Copy link

blurkis commented Jan 22, 2020

I wanted to use my google home mini as a speaker for my linux desktop which lacks bluetooth so pulseaudio-dlna would be perfect... i guessed.
The device shows up in the speaker-settings, but if I try to make it default i get this message:

01-22 15:17:12 pychromecast INFO Querying device status
01-22 15:17:12 pulseaudio_dlna.pulseaudio ERROR The device "Vardagsrummet (Chromecast)" failed to play! (500) - Chromecast 192.168.1.87:8009 is connecting...
01-22 15:17:13 pulseaudio_dlna.pulseaudio INFO _async_handle_sink_update /org/pulseaudio/core1/sink3 finished!

@bubuntux
Copy link

bubuntux commented Mar 5, 2020

same issue here

@clemtaylor
Copy link

I wasn't able to get it to work with a home mini either.

pulseaudio-dlna finds 2 home mini's, a 1st gen home and a playback group, but is unable to play back on any of them.

FYI, I've used https://github.com/balloob/pychromecast.git in the past to stream to the home mini and it seems to work just fine (although the latency is pretty bad, but the groups are in sync)

04-17 10:54:12 pychromecast                                   INFO     Querying device status
04-17 10:54:12 pulseaudio_dlna.pulseaudio                     ERROR    The device "Office (Chromecast)" failed to play! (500) - Chromecast 192.168.1.231:8009 is connecting...
Failure: No such entity

@waynew
Copy link

waynew commented Apr 25, 2020

It might have something to do with the stream and the Home Mini?

Here's an example of something that works:

python3 -m http.server  # somewhere you have mp3s. Grab the link

Spin up this:

import pychromecast

print('Loading cast devices...')
casts = pychromecast.get_chromecasts()
print('Cool')
for cc in casts:
    if cc.device.friendly_name.lower() == 'your name':
        cc.wait()
        cc.media_controller.play_media('your mp3 url here', 'audio/mp3')

That should work.

oh heck! I was trying to write up my hax, but I totally got it working! All you should need to do is go into pulseaudio_dlna/plugins/chromecast/renderer.py and find the line:

chromecast = self._create_pychromecast()
chromecast.media_controller.play_media(

and stick chromecast.wait in there:

chromecast = self._create_pychromecast()
chromecast.wait()
chromecast.media_controller.play_media(

It may take several seconds before the chromecast picks up, but that worked for me!

@waynew
Copy link

waynew commented Apr 25, 2020

Hah, yeah, looks like there's already a fix in #398 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants