Menu

#196 Sonos support

Unstable (example)
open
sonos (1)
5
2023-10-16
2023-10-11
blaserk
No

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).

  1. Model name must be "Windows Media Player Sharing", model number be "12.0". When these two strings match, the server can be immediately listed and browsed. But if we try to play an item, error 701 occurs.

Tips: in Sonos app, turn on "System -> Media Server -> Show Media Servers". There is also a "Show UPnP servers", which doesn't matter.

  1. Port number must be 10243. This is the port that "Windows Media Player Network Sharing Service" uses to offer media items. Technically, description, control and event can use any port number, but media files has to be on port 10243. Using this port now we can play. Simply edit /etc/minidlna.conf to make it work.
/etc/minidlna.conf

port=10243
model_name=Windows Media Player Sharing
model_number=12.0
#friendly_name=[ANYTHING WE LIKE]
  1. Album art must reside in /WMPNSSv4, otherwise Sonos doesn't ask for arts. A source patch is needed for this to work, config alone couldn't help.

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
1 Attachments

Discussion

  • blaserk

    blaserk - 2023-10-15

    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.

     
  • blaserk

    blaserk - 2023-10-16
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.