|
Server : Apache/2.2.2 (Fedora) System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686 User : apache ( 48) PHP Version : 5.2.9 Disable Function : NONE Directory : /var/www/html/warroom/ |
Upload File : |
function panel(dvr,cam,usr,pwd,ip,port,tmusr,label){
this.dvr = dvr;
this.cam = cam;
this.usr = usr;
this.pwd = pwd;
this.ip = ip;
this.port = port;
this.label = label;
this.user = tmusr;
}
function dvr_config(){
this.username = {
0:'admin',
1:'',
2:'',
3:'',
4:''
}
this.password = {
0:'admin',
1:'',
2:'',
3:'',
4:''
}
this.ip = {
0:'192.168.0.2',
1:'',
2:'',
3:'',
4:''
}
this.port = {
0:'80',
1:'',
2:'',
3:'',
4:''
}
this.chanel = [];
}
dvr_config.prototype.add = function(nm,dvr,cam,usr,label){
this.chanel[nm] = new panel(dvr,cam,this.username[dvr],this.password[dvr],this.ip[dvr],this.port[dvr],usr,label);
}
// config_panel
conf = new dvr_config;
conf.add(0,0,0,'','');
conf.add(1,0,1,'','');
conf.add(2,0,2,'','');
conf.add(3,0,3,'','');
conf.add(4,0,4,'','');
conf.add(5,0,5,'','');
conf.add(6,0,6,'','');
conf.add(7,0,7,'','');
conf.add(8,0,8,'','');
conf.add(9,0,9,'','');
conf.add(10,0,10,'','');
conf.add(11,0,11,'','');
conf.add(12,0,12,'','');
conf.add(13,0,13,'','');
conf.add(14,0,14,'','');
conf.add(15,0,15,'','');
function StopX2(arg)
{
i = document['NVLiveX'+arg].StopX();
}
function PlayX2(arg)
{
SetIpAddress2(arg);
i = document['NVLiveX'+arg].PlayX();
}
function SetIpAddress2(arg)
{
document['NVLiveX'+arg].SetIpAddress(conf.chanel[arg].ip);
document['NVLiveX'+arg].SetDataPort(conf.chanel[arg].port);
document['NVLiveX'+arg].ChangeCamX(conf.chanel[arg].cam);
document['NVLiveX'+arg].SetUserName(conf.chanel[arg].usr);
document['NVLiveX'+arg].SetPassword(conf.chanel[arg].pwd);
document['NVLiveX'+arg].SetQuality("1");
}
function PlaySound2()
{
document.NVLiveX2.PlaySound();
}
function StopSound2()
{
document.NVLiveX2.StopSound();
}