if (device instanceof TranscodeTarget) {
transTarget = (TranscodeTarget) device;
}
if (device == null) {
new InfoBarUtil(skinObject, "devicesview.infobar", false,
"DeviceView.infobar", "v3.deviceview.infobar") {
public boolean allowShow() {
return true;
}
};
} else if (device instanceof DeviceMediaRenderer) {
DeviceMediaRenderer renderer = (DeviceMediaRenderer) device;
int species = renderer.getRendererSpecies();
String speciesID = null;
switch (species) {
case DeviceMediaRenderer.RS_ITUNES:
speciesID = "itunes";
break;
case DeviceMediaRenderer.RS_PS3:
speciesID = "ps3";
break;
case DeviceMediaRenderer.RS_XBOX:
speciesID = "xbox";
break;
case DeviceMediaRenderer.RS_OTHER:{
String classification = renderer.getClassification();
if ( classification.equals( "sony.PSP")){
speciesID = "psp";
}else if ( classification.startsWith( "tivo.")){
speciesID = "tivo";
}else if ( classification.toLowerCase().contains( "android")){
speciesID = "android";
}
}
default:
break;
}
if (speciesID != null) {
final String fSpeciesID = speciesID;
new InfoBarUtil(skinObject, "devicesview.infobar", false,
"DeviceView.infobar." + speciesID, "v3.deviceview.infobar") {
public boolean allowShow() {
return true;
}