nginx-dlna-module icon indicating copy to clipboard operation
nginx-dlna-module copied to clipboard

Service descriptor is missing by default. Empty response

Open random-ua opened this issue 9 years ago • 0 comments

Client (I used vlc) doesn't even sent Browse requests before I put this random-ua@ 781833f017e78785507c0513e7b660938a0262cf XML service descriptor into /.upnp/resp.xml. After this fix client started making :ContentDirectory:1#Browse requests, just to receive such response:

<?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>
        &lt;DIDL-Lite
            xmlns:dc="http://purl.org/dc/elements/1.1/"
            xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/"
            xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/"
            xmlns:dlna="urn:schemas-dlna-org:metadata-1-0/"&gt;
        &lt;/DIDL-Lite&gt;
      </Result>
      <NumberReturned>0</NumberReturned>
      <TotalMatches>0</TotalMatches>
      <UpdateID>3</UpdateID>
    </u:BrowseResponse>
  </s:Body>
</s:Envelope>

nginx.conf

location /test {
 alias /private/tmp;
 dlna "Demo";
}

I can still fetch files from /test with regular HTTP w/o any problems.

random-ua avatar Oct 15 '15 12:10 random-ua