INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: UPnP Browse DirectChildren Problem  (Read 6172 times)

TomNKY

  • Recent member
  • *
  • Posts: 25
UPnP Browse DirectChildren Problem
« on: February 11, 2013, 03:34:01 pm »

I'm in the middle of a UPnP application for Windows Phone 8, and I have functioning code working against a couple MediaServers. My JRiver Server ( my favorite ;-) responded right off with Discovery of Devices, Services, and the first call in to the ContentDirectory to get the Root shot back it's answer just fine.

<?xml version="1.0"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
  <s:Body>
    <u:Browse xmlns:u="urn:schemas-upnp-org:service:ContentDirectory:1">
      <ObjectID>0</ObjectID>
      <BrowseFlag>BrowseDirectChildren</BrowseFlag>
      <Filter>*</Filter>
      <StartingIndex>0</StartingIndex>
      <RequestedCount>0</RequestedCount>
      <SortCriteria></SortCriteria>
    </u:Browse>
  </s:Body>
</s:Envelope>

And got

<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/" xmlns:dlna="urn:schemas-dlna-org:device-1-0" xmlns:av="urn:schemas-sony-com:av" xmlns:pv="http://www.pv.com/pvns/">
  <container id="4" parentID="0" restricted="1" searchable="1" childCount="6">
    <dc:title>Audio</dc:title>
    <upnp:class>object.container.storageFolder</upnp:class>
    <upnp:albumArtURI dlna:profileID="JPEG_TN">http://192.168.1.204:52100/CArt/4.jpg</upnp:albumArtURI>
    <res protocolInfo="http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_TN;DLNA.ORG_OP=00;DLNA.ORG_CI=1">http://192.168.1.204:52100/CArt/4.jpg</res>
  </container>
  <container id="16" parentID="0" restricted="1" searchable="1" childCount="6">
    <dc:title>Images</dc:title>
    <upnp:class>object.container.storageFolder</upnp:class>
    <upnp:albumArtURI dlna:profileID="JPEG_TN">http://192.168.1.204:52100/CArt/16.jpg</upnp:albumArtURI>
    <res protocolInfo="http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_TN;DLNA.ORG_OP=00;DLNA.ORG_CI=1">http://192.168.1.204:52100/CArt/16.jpg</res>
  </container>
  <container id="15" parentID="0" restricted="1" searchable="1" childCount="5">
    <dc:title>Video</dc:title>
    <upnp:class>object.container.storageFolder</upnp:class>
    <upnp:albumArtURI dlna:profileID="JPEG_TN">http://192.168.1.204:52100/CArt/15.jpg</upnp:albumArtURI>
    <res protocolInfo="http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_TN;DLNA.ORG_OP=00;DLNA.ORG_CI=1">http://192.168.1.204:52100/CArt/15.jpg</res>
  </container>
  <container id="5" parentID="0" restricted="1" searchable="1" childCount="20">
    <dc:title>Playlists</dc:title>
    <upnp:class>object.container.storageFolder</upnp:class>
    <upnp:albumArtURI dlna:profileID="JPEG_TN">http://192.168.1.204:52100/CArt/5.jpg</upnp:albumArtURI>
    <res protocolInfo="http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_TN;DLNA.ORG_OP=00;DLNA.ORG_CI=1">http://192.168.1.204:52100/CArt/5.jpg</res>
  </container>
</DIDL-Lite>

Then I asked for the contents of Audio and & always get the contents of the root.

<?xml version="1.0"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
  <s:Body>
    <u:Browse xmlns:u="urn:schemas-upnp-org:service:ContentDirectory:1">
      <ObjectID>4</ObjectID>
      <BrowseFlag>BrowseDirectChildren</BrowseFlag>
      <Filter>*</Filter>
      <StartingIndex>0</StartingIndex>
      <RequestedCount>3</RequestedCount>
      <SortCriteria></SortCriteria>
    </u:Browse>
  </s:Body>
</s:Envelope>

Any ideas? Oh by the way it is a MediaCenter 16. If that had a problem I guess I'll upgrade. I actually bought 17 but didn't get around to using it cause well I spent a savage year of massive tagging and didn't want to change my machines around the house.  Probably I really was avoiding redoing all the Theater views Gizmos, webplays etc.... my theater view is extensive !

Thanks in advance

Tom

Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42376
  • Shoes gone again!
Re: UPnP Browse DirectChildren Problem
« Reply #1 on: February 11, 2013, 04:15:13 pm »

Welcome.

No more changes will be made to MC16 or MC17, so please try MC18.
Logged
Matt Ashland, JRiver Media Center

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13874
Re: UPnP Browse DirectChildren Problem
« Reply #2 on: February 11, 2013, 05:50:12 pm »

You must have WMCCompat enabled in Advanced options since the Container ID for Audio isn't 4, it's 1 in DLNA (4 in WMC).
Disable it.
Logged

TomNKY

  • Recent member
  • *
  • Posts: 25
Re: UPnP Browse DirectChildren Problem
« Reply #3 on: February 12, 2013, 06:57:54 am »

Thank you so much Bob !

Last night I was reviewing many discussions about UPnP connectivity and it dawned on me that in all likelihood because the J River options are so extensive I might have some silly configuration that was meant for a different use. So I tried your suggestion and BAM! , it works just like I anticipated in code. You no doubt saved me many hours of wheel spinning  :D.

Now I can continue pushing my Lumia 920 down the road to becoming a full ControlPoint  on the LAN. I know all the 'Cloud Kids' out there have plenty of options, but for those of use with TBs of storage for media on servers at home ( or for someone like a wedding dj on the road with a portable server setup & travel WiFI ) it would be great to walk around controlling the party. I want more functionality than Gizmo or web interfaces. It would be great to walk into any LAN space , add/insert playlist items from multiple Servers ( mixed brand ). So I'm shooting for the lower commonality of UPnP. So my WP8 app will be for a nitch group but it's my nitch group !

Once more Thank you very much for your observation.
Logged

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 72442
  • Where did I put my teeth?
Re: UPnP Browse DirectChildren Problem
« Reply #4 on: February 12, 2013, 07:02:17 am »

I sent you a license at your forum address.
Logged
Pages: [1]   Go Up