3
我正在尝试使用Cling Java库编写DLNA应用程序。我可以搜索DLNA网络中的所有媒体服务器并播放内容。但我需要搜索网络中可用的媒体渲染器并播放其中的内容。就像UPnPlay一样。搜索用于remoteplayback的DLNA(Upnp)媒体渲染器
在此先感谢。
我正在尝试使用Cling Java库编写DLNA应用程序。我可以搜索DLNA网络中的所有媒体服务器并播放内容。但我需要搜索网络中可用的媒体渲染器并播放其中的内容。就像UPnPlay一样。搜索用于remoteplayback的DLNA(Upnp)媒体渲染器
在此先感谢。
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")
};
}
};
}
}
搜索与“服务的AVTransport”功能的设备解决了搜索媒体渲染器远程回放的问题。对于远程回放,我发现从this
足够documnetation