Created
April 6, 2018 00:51
-
-
Save elmodaddyb/be31379cc4eb1c8a3311b67c0d2d7199 to your computer and use it in GitHub Desktop.
UPNP Search Example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<u:Search xmlns:u="urn:schemas-upnp-org:service:ContentDirectory:1"> | |
<ContainerID>0</ContainerID> | |
<SearchCriteria>(upnp:class = "object.container.album.musicAlbum" and upnp:artist contains "SearchByArtist")</SearchCriteria> | |
<Filter>*</Filter> | |
<StartingIndex>0</StartingIndex> | |
<RequestedCount>16</RequestedCount> | |
<SortCriteria/> | |
</u:Search> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<u:SearchResponse xmlns:u="urn:schemas-upnp-org:service:ContentDirectory:1"> | |
<Result> | |
<!-- Converted escaped XML to real XML for clarity --> | |
<DIDL-Lite xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/" | |
xmlns:dc="http://purl.org/dc/elements/1.1/" | |
xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/"> | |
<item id="33139" parentID="33138" restricted="1"> | |
<dc:title>Music Track.mp3</dc:title> | |
<upnp:class>object.item.audioItem.musicTrack</upnp:class> | |
<upnp:artist>SearchByArtist</upnp:artist> | |
<upnp:album>Unknown</upnp:album> | |
<upnp:genre>Unknown</upnp:genre> | |
<res | |
protocolInfo="http-get:*:audio/mpeg:*" size="105349561" bitrate="24000" duration="01:13:09.5" | |
sampleFrequency="44100" nrAudioChannels="2"> | |
http://127.0.0.1:49152/content/media/object_id/33139/res_id/0/ext/file.mp3 | |
</res> | |
</item> | |
<!-- repeat `item` until result total --> | |
</DIDL-Lite> | |
<!-- Converted escaped XML to real XML for clarity --> | |
</Result> | |
<NumberReturned>16</NumberReturned> | |
<TotalMatches>16</TotalMatches> | |
<UpdateID>0</UpdateID> | |
</u:SearchResponse> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment