UPnP/DLNA library for Java and Android, with a modification to discover DIAL devices
Java CSS
Switch branches/tags
Clone or download
Pull request Compare This branch is 3 commits ahead, 90 commits behind 4thline:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bridge
core/src
demo
distribution
mediarenderer
misc
osgi
support
website
workbench
.gitignore
README.md
pom.xml

README.md

Read the README from the original project

https://github.com/4thline/cling

Mods

  • Addition of a ApplicationURLHeader as clone of LocationHeader

  • Modification of RemoteDevice to store the Application URL information

  • Modification of RetrieveRemoteDescriptors to get the info from the header and put it in the RemoteDevice

  • Modification of UpnpHeader to take ApplicationURLHeader into account in the parsing

Usage

  • In a RegistryListener, listen for failed discoveries by implementing remoteDeviceDiscoveryFailed

  • In this method, test device.getType().toString().equals("urn:dial-multiscreen-org:device:dial:1")

  • If it is the case, then device.getDIALApplicationURL() gives you the application URL provided as a HTTP header during the SSDP dialog