UPnPAction act = service.getAction( "GetCommonLinkProperties" );
if ( act == null ){
service.getDevice().getRootDevice().getUPnP().log( "Action 'GetCommonLinkProperties' not supported, binding not established" );
throw( new UPnPException( "GetCommonLinkProperties not supported" ));
}else{
UPnPActionInvocation inv = act.getInvocation();
UPnPActionArgument[] args = inv.invoke();
long[] res = new long[2];
for (int i=0;i<args.length;i++){
UPnPActionArgument arg = args[i];
String name = arg.getName();
if ( name.equalsIgnoreCase("NewLayer1UpstreamMaxBitRate")){
res[1] = Long.parseLong( arg.getValue());
}else if ( name.equalsIgnoreCase("NewLayer1DownstreamMaxBitRate")){
res[0] = Long.parseLong( arg.getValue());
}
}
return( res );
}