Hi,
I have same issue, and I have spy the UPNP AV soap exchange between samsung TV and DNS320L.
I have found an issue in the DLINK DNS 320L response.
Samsung TV asking to browse directory content from index 0 and asking for 1 item response. To this request the DNS 320L respond 2 items instead of 1. See http frame 1 below.
Because when TV is connected to PC ALLSHARE application the next command is Browse form 0 to 30. I SUPPOSE than the first run 0 to 1 is just to identify if the directory is empty. May be Samsung do a test like != 1 so directory is empty and display only parent directory icon.
The issue doesn’t happen when TV browse the root content of the NAS, in this use case, NAS response contains only 1 item. See http frame 2 below.
I hope DLINK read this forum and will be able to update this point quickly.
HTTP FRAME 1
POST /ContentDirectory/control HTTP/1.1
Accept: */*
User-Agent: SEC_HHP_[TV]UE55ES6100/1.0 DLNADOC/1.50
Host: 192.168.0.4:6000
SOAPACTION: "urn:schemas-upnp-org:service:ContentDirectory:1#Browse"
CONTENT-TYPE: text/xml; charset="utf-8"
Content-Length: 452
Connection: close
<?xml version="1.0" encoding="utf-8"?>
<s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<u:Browse xmlns:u="urn:schemas-upnp-org:service:ContentDirectory:1">
<ObjectID>0\Movie\</ObjectID>
<BrowseFlag>BrowseDirectChildren</BrowseFlag>
<Filter>*</Filter>
<StartingIndex>0</StartingIndex>
<RequestedCount>1</RequestedCount>
<SortCriteria/>
</u:Browse>
</s:Body>
</s:Envelope>
HTTP/1.1 200 OK
EXT:
CONTENT-TYPE: text/xml; charset="utf-8"
SERVER: POSIX, UPnP/1.0, DNS-320L
Date: Fri, 01 Mar 2013 18:18:26 GMT
Transfer-Encoding: chunked
493
<?xml version="1.0" encoding="utf-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
<u:BrowseResponse xmlns:u="urn:schemas-upnp-org:service:ContentDirectory:1">
<Result>
<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:metadata-1-0/">
<container id="0\Movie\All_Videos\" parentID="0\Movie\" restricted="1" childCount="806">
<dc:title>All Videos</dc:title>
<upnp:class>object.container</upnp:class>
</container>
<container id="0\Movie\Folders\" parentID="0\Movie\" restricted="1" childCount="1">
<dc:title>Folders</dc:title>
<upnp:class>object.container</upnp:class>
</container>
</DIDL-Lite>
</Result>
<NumberReturned>2</NumberReturned>
<TotalMatches>2</TotalMatches>
<UpdateID>0</UpdateID>
</u:BrowseResponse>
</s:Body>
</s:Envelope> bellow
HTTP FRAME 2
POST /ContentDirectory/control HTTP/1.1
Accept: */*
User-Agent: SEC_HHP_[TV]UE55ES6100/1.0 DLNADOC/1.50
Host: 192.168.0.4:6000
SOAPACTION: "urn:schemas-upnp-org:service:ContentDirectory:1#Browse"
CONTENT-TYPE: text/xml; charset="utf-8"
Content-Length: 451
Connection: close
<?xml version="1.0" encoding="utf-8"?>
<s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<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>1</RequestedCount>
<SortCriteria/>
</u:Browse>
</s:Body>
</s:Envelope>
HTTP/1.1 200 OK
EXT:
CONTENT-TYPE: text/xml; charset="utf-8"
SERVER: POSIX, UPnP/1.0, DNS-320L
Date: Fri, 01 Mar 2013 18:18:21 GMT
Transfer-Encoding: chunked
382
<?xml version="1.0" encoding="utf-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
<u:BrowseResponse xmlns:u="urn:schemas-upnp-org:service:ContentDirectory:1">
<Result>
<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:metadata-1-0/">
<container id="0\Movie\" parentID="0" restricted="1" childCount="2">
<dc:title>Video</dc:title>
<upnp:class>object.container</upnp:class>
</container>
</DIDL-Lite>
</Result>
<NumberReturned>1</NumberReturned>
<TotalMatches>3</TotalMatches>
<UpdateID>0</UpdateID>
</u:BrowseResponse>
</s:Body>
</s:Envelope>