PDA

View Full Version : Server UPnP question



dennisV
2007-10-24, 22:15
Hello,

I own a SB2 at home, but I work on developing a DLNA/UPnP server at work (I'm a software engineer). Naturally, I tried to combine the two together and things look pretty good, except for one issue - both the server (6.5.5) and the SB2 are ignoring for some reason the tags that should tell them that there're more items to grab (when the <NumberReturned> is less than <TotalMatches>), so this causes the server to get only the first 50 items when forming its html screens for example (because its requesting 50). I'm posting the XML that is being fed from my server below, maybe you can spot something weird? But this same XML and server work correctly with DLNA-certified and other UPnP devices (PS3, XBox360, Sony, etc...). Are there known issues or peculiarities in the SlimDevices server that I should be aware of? I'd really appreciate any input and thoughts on this.

Thanks in advance!

---8<---
<?xml version="1.0" ?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<m:BrowseResponse xmlns:m="urn:schemas-upnp-org:service:ContentDirectory:1">
<Result xmlns:dt="urn:schemas-microsoft-com:datatypes" dt:dt="string">
<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/">
... (lots of <containers> and <items> here)...
</DIDL-Lite>
</Result>
<NumberReturned xmlns:dt="urn:schemas-microsoft-com:datatypes" dt:dt="ui4">50</NumberReturned>
<TotalMatches xmlns:dt="urn:schemas-microsoft-com:datatypes" dt:dt="ui4">130</TotalMatches>
<UpdateID xmlns:dt="urn:schemas-microsoft-com:datatypes" dt:dt="ui4">3</UpdateID>
</m:BrowseResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

andyg
2007-10-25, 07:02
On Oct 25, 2007, at 1:15 AM, dennisV wrote:

>
> Hello,
>
> I own a SB2 at home, but I work on developing a DLNA/UPnP server at
> work (I'm a software engineer). Naturally, I tried to combine the two
> together and things look pretty good, except for one issue - both the
> server (6.5.5) and the SB2 are ignoring for some reason the tags that
> should tell them that there're more items to grab (when the
> <NumberReturned> is less than <TotalMatches>), so this causes the
> server to get only the first 50 items when forming its html screens
> for
> example (because its requesting 50). I'm posting the XML that is being
> fed from my server below, maybe you can spot something weird? But this
> same XML and server work correctly with DLNA-certified and other UPnP
> devices (PS3, XBox360, Sony, etc...). Are there known issues or
> peculiarities in the SlimDevices server that I should be aware of? I'd
> really appreciate any input and thoughts on this.

Hmm I know pagination was working fine the last time I worked with
that code. You don't get extra page links in the web UI?

dennisV
2007-10-25, 14:11
Yes, I don't get extra page links and also the SB2 itself only displays the first <NumberReturned> items and doesn't ask for the rest.

andyg
2007-10-25, 14:15
On Oct 25, 2007, at 5:11 PM, dennisV wrote:

>
> Yes, I don't get extra page links and also the SB2 itself only
> displays
> the first <NumberReturned> items and doesn't ask for the rest.

I just tested here and was able to get multiple pages from a UPnP
server.

dennisV
2007-10-25, 15:13
On Oct 25, 2007, at 5:11 PM, dennisV wrote:

>
> Yes, I don't get extra page links and also the SB2 itself only
> displays
> the first <NumberReturned> items and doesn't ask for the rest.

I just tested here and was able to get multiple pages from a UPnP
server.
Yes, I do get multiple pages from other servers, such as TVersity, but at the same time other clients correctly understand the XML that we deliver, including the <NumberReturned> and <TotalMatches> fields, which I think are the culprit here.

Could this - xmlns:dt="urn:schemas-microsoft-com:datatypes" dt:dt="ui4" - throw SB off by any chance? It's not present in other servers when they deliver their XMLs.