Skip to content
This repository has been archived by the owner on Jun 17, 2019. It is now read-only.

Commit

Permalink
Added some lines that should give basic Sony Bravia support (thanks t…
Browse files Browse the repository at this point in the history
…o vimacs)
  • Loading branch information
jin_eld committed Jan 27, 2010
1 parent 17da90d commit fff5f6b
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions src/upnp_xml.cc
Expand Up @@ -209,9 +209,21 @@ Ref<Element> UpnpXML_RenderDeviceDescription(String presentationURL)

root->appendElementChild(specVersion);

// root->appendTextChild("URLBase", "");

Ref<Element> device(new Element(_("device")));

#ifdef EXTEND_PROTOCOLINFO
if (config->getBoolOption(CFG_SERVER_EXTEND_PROTOCOLINFO))
{
//we do not do DLNA yet but this is needed for bravia tv (v5500)
Ref<Element> DLNADOC(new Element(_("dlna:X_DLNADOC")));
DLNADOC->setText(_("DMS-1.50"));
// DLNADOC->setText(_("M-DMS-1.50"));
DLNADOC->setAttribute(_("xmlns:dlna"),
_("urn:schemas-dlna-org:device-1-0"));
device->appendElementChild(DLNADOC);
}
#endif

device->appendTextChild(_("deviceType"), _(DESC_DEVICE_TYPE));
if (!string_ok(presentationURL))
device->appendTextChild(_("presentationURL"), _("/"));
Expand Down

0 comments on commit fff5f6b

Please sign in to comment.