Guest User

Untitled

a guest
Jun 5th, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.50 KB | None | 0 0
  1.         <script language= "javascript">
  2.             var nTimer;
  3.        
  4.             function Play() {
  5.          /*       window.clearInterval(nTimer); */
  6.        
  7.                 NV1.MediaType = 1 ;    
  8.                 NV1.ID = 1 ;
  9.                 //NV1.SetActive(1);
  10.                 NV1.DisplayTitleBar(0);
  11.        
  12.        
  13.            
  14.                 NV1.MediaSource = "205.200.88.223"; // Video Server IP
  15.                 NV1.MediaUserName = "Admin";        // Video Server User Name
  16.                 NV1.MediaPassword = "123456";       // Video Server Password
  17.                 NV1.Httpport = 80;          // Video Server Http Port
  18.                 NV1.RegisterPort = 6000;        // Video Server Register Port
  19.                 NV1.ControlPort = 6001;         // Video Server Control Port
  20.                 NV1.StreamingPort = 6002;       // Video Server Streaming Port
  21.                 NV1.MulticastPort = 5000;       // Video Server Multicast Port
  22.        
  23.                 NV1.Vendor="Dynacolor";
  24. //                NV1.Vendor="CAM-6600";            // PTZ Vendor, IN CAPTICALS
  25.                 NV1.Protocol="Pelco-P";         // PTZ Protocol, IN CAPTICALS
  26.                 NV1.AddressID="2";          // PTZ Address ID
  27.                 NV1.PTZPostMode="1";
  28.                 NV1.Parity="N81";           // PTZ Parity
  29.                 NV1.BaudRate="9600";            // PTZ Baudrate
  30.        
  31.                 NV1.Connect(0) ;
  32.                 NV1.Play() ;
  33.        
  34.                 if (NV1.ContentStatus>=2) {
  35.                     NV1.EnablePTZ();        // Enable/Disable PTZ
  36.                     NV1.DisableMousePTZ();      // Enable/Disable Mouse PTZ
  37.           /*          setInterval("chgTimer()", 1000);//Start the Count down */
  38.          
  39.                 }
  40.             }
  41.        
  42.               /*  var bfrEnd = 720 ;
  43.                 var nLivingTime = 120;                      // time of this demo display
  44.                 var nStep = parseInt(bfrEnd/nLivingTime) */
  45.        
  46.      
  47.             function chgTimer() {
  48.                 bfrEnd -= nStep ;
  49.                 nLivingTime-- ;
  50.        
  51.                 tmTimer.style.width = bfrEnd ;
  52.                 tmTimer.style.pixelLeft += nStep
  53.                 txtLiving.innerText = 'Demo ends after ' + nLivingTime + ' sec' ;
  54.                
  55.                
  56.             /*if (nLivingTime == 0 ) winClose() ;*/
  57.             }
  58.         /*  
  59.             function winClose() {
  60.                 NV1.DisConn() ;
  61.                 window.opener=null ;
  62.                 window.close() ;
  63.             }
  64.  
  65.            
  66.             nTimer=setInterval("window.Play()",100);
  67.       */
  68.         </script>
Add Comment
Please, Sign In to add comment