Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script language= "javascript">
- var nTimer;
- function Play() {
- /* window.clearInterval(nTimer); */
- NV1.MediaType = 1 ;
- NV1.ID = 1 ;
- //NV1.SetActive(1);
- NV1.DisplayTitleBar(0);
- NV1.MediaSource = "205.200.88.223"; // Video Server IP
- NV1.MediaUserName = "Admin"; // Video Server User Name
- NV1.MediaPassword = "123456"; // Video Server Password
- NV1.Httpport = 80; // Video Server Http Port
- NV1.RegisterPort = 6000; // Video Server Register Port
- NV1.ControlPort = 6001; // Video Server Control Port
- NV1.StreamingPort = 6002; // Video Server Streaming Port
- NV1.MulticastPort = 5000; // Video Server Multicast Port
- NV1.Vendor="Dynacolor";
- // NV1.Vendor="CAM-6600"; // PTZ Vendor, IN CAPTICALS
- NV1.Protocol="Pelco-P"; // PTZ Protocol, IN CAPTICALS
- NV1.AddressID="2"; // PTZ Address ID
- NV1.PTZPostMode="1";
- NV1.Parity="N81"; // PTZ Parity
- NV1.BaudRate="9600"; // PTZ Baudrate
- NV1.Connect(0) ;
- NV1.Play() ;
- if (NV1.ContentStatus>=2) {
- NV1.EnablePTZ(); // Enable/Disable PTZ
- NV1.DisableMousePTZ(); // Enable/Disable Mouse PTZ
- /* setInterval("chgTimer()", 1000);//Start the Count down */
- }
- }
- /* var bfrEnd = 720 ;
- var nLivingTime = 120; // time of this demo display
- var nStep = parseInt(bfrEnd/nLivingTime) */
- function chgTimer() {
- bfrEnd -= nStep ;
- nLivingTime-- ;
- tmTimer.style.width = bfrEnd ;
- tmTimer.style.pixelLeft += nStep
- txtLiving.innerText = 'Demo ends after ' + nLivingTime + ' sec' ;
- /*if (nLivingTime == 0 ) winClose() ;*/
- }
- /*
- function winClose() {
- NV1.DisConn() ;
- window.opener=null ;
- window.close() ;
- }
- nTimer=setInterval("window.Play()",100);
- */
- </script>
Add Comment
Please, Sign In to add comment