"Collection of items" in AVTransportURI
the desciption of AVTransportURI states "This URI may refer to a single item (for example, a song) or to a collection of items (for example, a playlist).".
How to I refer to a "collection of items"? In the results, woch I get via browse only the single files have an URI, which I can use.
The use case is e.g. to play a complete album.
I don't think you can play a folder or something similar. I believe you have to create a playlist file (.m3u) and play/reference that file.
I have never tested this myself so I can not say exactly how this works or how it should work.
@david-åberg Thanks for your reply. I think I found in some DLNA descriptions that folders may or may not have a "res" attribute. In my case they don't so that I need to iterate throught the items in the album.
But I have an additional new question:
I did put the URI of the MP3 in AVTransportURI.
I tried to fill the AVTransportURI.CurrentURIMetaData with the required information (received with BrowseMetadata).
But actually the track starts playing but in the app of my DLNA player I don't see any meta data (duration of the song etc.).
There are three cases:
- tURIMetaData: track starts playing but without meta data
- assumed correct metadata: track starts playing but without meta data
- some wrong meta data: error when sending SetAVTransportURI
Do you have any idea how I could figure out the reason?
@tryingtorundlna It was a long time since I worked with DLNA but I think I remember being able to get the metadata from the device.
What I would do, if you have the possibility, is to test that it works with another DLNA player. If it works then sniff the network packages with wireshark or similar. I know from experience that the devices can be very picky at times of what they accept so even the smallest binay error and the device might silently ignore the data.
It can be frustrating sometimes, but I hope you get it to work.
@david-åberg Wireshark did help. The Metadata, which I got from the server was not accepted by the renderer. It contained quotes ("), which were unescaped ("). All other characters were escaped.