boolean updateFlag = false;
MediaPlayer dmp = getMediaPlayer();
if (dmp == null)
return false;
MediaController controller = dmp.getController();
if (controller == null)
return false;
DeviceList devList = controller.getDeviceList();
int devCnt = devList.size();
for (int n=0; n<devCnt; n++) {
Device dev = devList.getDevice(n);
if (dev.isDeviceType(MediaServer.DEVICE_TYPE) == false)
continue;
System.out.println("[" + n + "] " + dev.getFriendlyName() + ", " + dev.getLeaseTime() + ", " + dev.getElapsedTime());
}
int nContents = getNContentNodes();
ContentNode cnode[] = new ContentNode[nContents];
for (int n=0; n<nContents; n++)
cnode[n] = getContentNode(n);
for (int n=0; n<nContents; n++) {
String containerName = cnode[n].getName();
if (controller.hasDevice(containerName) == false) {
ContainerNode mserverNode = new ContainerNode();
mserverNode.setName(containerName);
addContentNode(mserverNode);
}
}