Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Search DLNA(Upnp) media renderers for remoteplayback

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.

like image 495
manjusg Avatar asked Oct 15 '25 16:10

manjusg


1 Answers

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

like image 108
manjusg Avatar answered Oct 18 '25 09:10

manjusg



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!