4

I am trying to write a DLNA application using the Cling Java library. I Can able to search all the media servers in the DLNA network and play the content also. But i need to search Media Renderers available in the network and play the content on them. Just like UPnPlay does.

Thanks in advance.

manjusg
  • 2,275
  • 1
  • 22
  • 31

1 Answers1

5
public class MyUpnpService extends AndroidUpnpServiceImpl {

@Override
protected AndroidUpnpServiceConfiguration createConfiguration(WifiManager wifiManager) {
    return new AndroidUpnpServiceConfiguration(wifiManager) {

        @Override
        public ServiceType[] getExclusiveServiceTypes() {
            return new ServiceType[] {
                    new UDAServiceType("AVTransport")
            };
        }

    };
}

}

Searching for devices with "AVTransport service" capability solved the issue of searching for Media renderers for remote playback. For remote playback i found enough documnetation from this

manjusg
  • 2,275
  • 1
  • 22
  • 31