views:

165

answers:

3

Is there a library for implementing service discovery and publishing via UPnP?

(I am trying to find some alternatives to JmDNS that while protocol-wise worked fine for our purposes, was highly unstable as a library, having an unacceptably bad tendency for deadlocking itself.)

+6  A: 

http://teleal.org/projects/cling

Open Source DLNA/UPnP stack, libraries, and tools for Java and Android developers

cbauer
Thanks - this was exactly what I am looking for
Roland Tepp
@Roland : Can u just tell me what exactly u r about to do? i need help on discovering the UPnP device in android.. I want to make app which my android device serves as a medium which can be able to stream media from internet and then make available to UPnP device..Any help on this..
Rakesh Gondaliya
@cbauer: Thanks i was looking forward for this only...thanks
Rakesh Gondaliya
@cbauer:Have you worked With UPnP devices???? iF U CAN GUIDE ME...
Rakesh Gondaliya
We need it for integration with a 3rd party POS system that uses UPnP for comunication and negotiation. I can't really help you out in your particular case (fwiw - I find UPnP to be an extremely ugly protocol)
Roland Tepp
+1  A: 

You can also try: http://sourceforge.net/projects/cgupnpjava/

lordhong
A: 

@cbauer the cling for android apk "upnp-browser" crashes on launch, it says OutOfMemoryError in logcat

lordhong
this is irrelevant and useless as an answer (in SO, the order of the answers may change quite dramatically based on the voting, so your answer may lose it's context really rapidly) If you have comments about _cling_ library specifically, post these as comments to the answer they are relevant to.
Roland Tepp
What I'm trying to say is that the sample Cling for android app, as well as the sample app compiled under Android, crashes on launch. It serves as a warning that Cling lib has some problems.
lordhong