Access DLNA TV with Java code

I want to control my DLNA TV from my Java program on my PC. In particular, I want:

  • find out if there is a TV in the local network
  • check if it is currently enabled (for the first step)
  • then send some commands (e.g. OFF) to it

I believe I need to implement a Digital Media Controller (DLNA-DMC) profile. Is there a Java library that allows me to do this easily?

I could not find many documents about this. Are the APIs under the NDA?

Can you recommend some readings?

+4
source share
3 answers

Take a look at Cling . I'm not sure if it implements the UPnP control point functions that you are actually looking for, but at least this is the starting point.

+6
source

ohNet does exactly what you want.

It is available under the BSD license and includes the checkpoint stack you need and can generate code to greatly simplify the use of services in any profile (see documents on ohNetGen).

(Disclaimer: I contributed to this project)

+3
source

Intel DLNA tools make it easy to create a DLNA checkpoint for any platform in any language c, C ++, C #, Java. Try Intelยฎ Software for UPnP * Technology: Download Tools

They even have tools to test your application.

+3
source

All Articles