-
Hi! I'm not actually using this library, I'm doing something with the rust sonor library, but you seem to know things about this stuff, so I'm asking in the hope that you can share some insight. I'm building a controller daemon that serves up files from my media library via http URLs. I was hoping to be able to send in the track metadata at the time they are added to the queue, but when I try that, I get a 500 error with no additional error context. (I'm not sure if the underlying library is hiding that, or whether there is no additional information). If I ask the sonos device to return the metadata for the current track after assigning one with no metadata, I see something like this: <DIDL-Lite xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/"
xmlns:r="urn:schemas-rinconnetworks-com:metadata-1-0/"
xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/">
<item id="-1" parentID="-1" restricted="true">
<res protocolInfo="http-get:*:audio/mpeg:*" duration="0:03:46">http://192.168.1.92:4242/download/library/file/6a3cfe3ac204f15163c5181fdbc24bc958a5f022a3cb9555476441cc21ce2f1a/data.mp3</res>
<r:streamContent></r:streamContent>
<upnp:albumArtURI>/getaa?u=http%3a%2f%2f192.168.1.92%3a4242%2fdownload%2flibrary%2ffile%2f6a3cfe3ac204f15163c5181fdbc24bc958a5f022a3cb9555476441cc21ce2f1a%2fdata.mp3&v=722</upnp:albumArtURI>
<dc:title>Anonymous</dc:title>
<upnp:class>object.item.audioItem.musicTrack</upnp:class>
<dc:creator>Karl Casey</dc:creator>
<upnp:album>Gore</upnp:album>
<upnp:originalTrackNumber>1</upnp:originalTrackNumber>
<r:albumArtist>Karl Casey</r:albumArtist>
</item></DIDL-Lite> If I try and pass exactly that in as metadata, I also get a 500 error. Any tips of making this sort of thing work? Is this just one of those things where the sonos device won't accept metadata? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I would do:
you best guess is to set as minimal as possible, and it’s important that the metadata is encoded inside the xml. So the metadata is an encoded xml. Here is some information I also got from messing with the speakers. https://sonos.svrooij.io/metadata.html |
Beta Was this translation helpful? Give feedback.
I would do:
you best guess is to set as minimal as possible, and it’s important that the metadata is encoded inside the xml. So the metadata is an encoded xml.
Here is some information I also got from messing with the speakers. https://sonos.svrooij.io/metadata.html