Raspberry DLNA Server, that shares local Home Assistent Media and a DLNA Renderer on local 3.5mm Headphone out. Also Snapcast Server & Client for MultiRoomAudio!
Based on: badaix/snapcast and hzeller/gmrender-resurrect
DLNA Server → DLNA Render → Snapcast Server → Snapcast → Audio Out
It’s working, and no latency on 64bit clients (Snapcast Android App & RaspPi Audio out!
I coul’d need some help in the structure of the addon, so thos maybe can be an Community Addon!
Todo:
Other Soundcards Audio out on RaspPi
Test on other systems (i386, amd64, e.g.)
Split into three addons Dlna Server, HassPIAudio (DLNA renderer & Snapcast Server), Snapcast Client + Audio out
Installation:
Copy folder into addons
Install it from HA addons
Add Snapcast integration from HA
No Setup needed (Except IP-Ports if needed)
UPNP Server shares HA Media folder in Network
UPNP Renderer will be detect as HassPiAudio Media Player by HA DLNA
I don’t want to necro-post, but I also don’t want to start an entirely new topic when I literally got mine working based on this exact post.
Basically ithread.h was replaced as a dependency. I had to update this file:
src/upnp_renderer.c
and change the line #include ithread.h
to #include pthread.h
and then add a command to the end of the dockerfile to make files under /etc/services.d/ executable. RUN chmod -R +x /etc/services.d/