Sonos support
Brought to you by:
jmaggard
Sonos has been known for being very picky about UPnP media servers. It only recognize Windows Media Player shares, maybe also Plex as I have heard.
By days of trial and error, I have found out that when the following requirements are met, Sonos can also recognize normal UPnP servers, like MiniDLNA (ReadyMedia).
Tips: in Sonos app, turn on "System -> Media Server -> Show Media Servers". There is also a "Show UPnP servers", which doesn't matter.
/etc/minidlna.conf
port=10243
model_name=Windows Media Player Sharing
model_number=12.0
#friendly_name=[ANYTHING WE LIKE]
This patch shouldn't affect existing supported devices. It handles model name and number for Sonos devices, so now we need only one conf line to make it all work.
/etc/minidlna.conf
port=10243
Minidlna limits album arts to be 160 x 160 in pixels, which look blur in Sonos app. So I decided to send raw image instead of cached small thumbs.
Put arts in the same folder as the audio file, search order:
audio_file.ext.cover.jpg
audio_file.jpg
folder art file according to conf file option album_art_names
Sonos android app shows 960 x 960 covers, so use this resolution for optimal visuals. Or use 480 x 480 if file size or bandwidth is sensitive.
I forked, please see https://sourceforge.net/u/blaserk/minidlna