Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
DLNA Controller in Java
03-09-2013, 01:23 PM
Post: #10
RE: DLNA Controller in Java
(03-09-2013 12:48 PM)rajareddy Wrote:  Simonc, I have simple question
We have callback listener for deviceAdded(..) and deviceRemoved(..)
Let's take an Example, two devices added Device-A and Device-B
How to identify Device-A/B is of type DMS/DMR ?

I've tried to answer your question below. If I haven't covered everything you'd like to know, it'd be great if you could post any follow-up questions to a new thread. Threads will become less useful to future readers if they start to cover multiple independent issues...

You have a couple of options to distinguish between different device types
  • You could avoid the problem by creating two device lists, one each for a service that is unique to only a server or renderer, setting their callbacks to point to different objects.
  • If you can't avoid having a single device list that includes both servers and renderers, you could call device.getAttribute("Upnp.DeviceXml") and check the value of the deviceType element
Find all posts by this user


Messages In This Thread
DLNA Controller in Java - adaptiveal - 10-07-2012, 07:49 PM
RE: DLNA Controller in Java - simonc - 11-07-2012, 11:13 AM
RE: DLNA Controller in Java - adaptiveal - 11-07-2012, 02:33 PM
RE: DLNA Controller in Java - simonc - 11-07-2012, 02:57 PM
RE: DLNA Controller in Java - adaptiveal - 11-07-2012, 07:08 PM
RE: DLNA Controller in Java - simoncn - 11-07-2012, 07:49 PM
RE: DLNA Controller in Java - adaptiveal - 11-07-2012, 08:57 PM
RE: DLNA Controller in Java - simonc - 11-07-2012, 09:07 PM
RE: DLNA Controller in Java - rajareddy - 03-09-2013, 12:48 PM
RE: DLNA Controller in Java - simonc - 03-09-2013 01:23 PM

Forum Jump: