nicokaiser / rpi-audio-receiver

Raspberry Pi Audio Receiver with Bluetooth A2DP, AirPlay 2, and Spotify Connect
MIT License
1.37k stars 148 forks source link

Raspotify disconnects client when trying to play audio #122

Closed serman closed 2 years ago

serman commented 2 years ago

On raspberry pi zero 2.

I manually added this patch to the downloaded files: https://github.com/nicokaiser/rpi-audio-receiver/pull/117

  1. The device appears on the Spotify connect devices list. Select it
  2. Play Song
  3. Phone is disconnected from the device.

on /var/log/messages:

pulseaudio "Denied access to client with invalid authentication data"

Quick solution: https://unix.stackexchange.com/questions/338687/pulseaudio-as-system-wide-systemd-service

After some experimentation I found that modifying /etc/pulse/system.pa to permit anonymous: load-module module-native-protocol-unix auth-anonymous=1

With this it works on my setup