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

librespot builtin mDNS is in conflict with avahi-daemon #123

Open
tgc-dk opened this issue Jan 3, 2025 · 3 comments
Open

librespot builtin mDNS is in conflict with avahi-daemon #123

tgc-dk opened this issue Jan 3, 2025 · 3 comments

Comments

@tgc-dk
Copy link

tgc-dk commented Jan 3, 2025

Tried out the image raspOVOS-bookworm-arm64-lite-2024-12-27, and it mostly worked fine.

I tried using the Spotify skill, but realized that I couldn't detect the running librespot instance. After reading https://github.com/librespot-org/librespot/wiki/librespot,-mDNS,-networking-and-containers I disabled the avahi-daemon and now I can detect it.

So maybe avahi-daemon needs to be disabled by default, or librespot must be build with support for avahi?

I still can't make "mycroft" start music playback on the librespot instance, but now it is detectable from the Spotify app on my phone...

@JarbasAl
Copy link
Member

JarbasAl commented Jan 7, 2025

thanks for testing, but please note that is a development image and not the one users are supposed to use

I purposefully deployed librespot only to that one but not the language specific images as it isnt yet working 100%

thanks for the pointers! will keep the issue open to track progress of spotify support

@JarbasAl
Copy link
Member

JarbasAl commented Jan 7, 2025

im crosscompiling according to https://github.com/librespot-org/librespot/wiki/Cross-compiling and will update the binary with avahi support enabled

did you also see the instructions to perform OAuth? OVOS wont be able to start playback without this step

https://github.com/OpenVoiceOS/ovos-media-plugin-spotify?tab=readme-ov-file#oauth

@tgc-dk
Copy link
Author

tgc-dk commented Jan 8, 2025

Hi @JarbasAl

I found out that I'm able to start playback on the librespot instance from OVOS if I've already started playing something else from the spotify android app. Not entirely sure what is going on there...

I've not set up librespot with any extra authentication.

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

2 participants