function Device(){this.language="",this.uid="",this.hostName="",this.port="",this.userName="",this.password="",this.streamType="",this.loginType="IP",this.deviceName="",this.channelCount=0,this.channels=new Array,this.ptzMode=0,this.isIPC=!1,this.canReplay=!0,this.canReplaySubStream=!1}Device.prototype.refreshChannels=function(){this.channels.length=0;for(var e=0;e