<title>菲博特电子科技(深圳)有限公司 E视动调用视频测试</title>
    
    ON ERROR resume next
    
        
    
//    XEnroll.AcceptPkcs7(sPKCS7)
//    if err.Number <> 0 then
//    if err.number = -2146885628 then
//    else
//    end if
//    else
//    End if
    XEnroll.InstallPKCS7 sPKCS7
    If err.number = 438 then
    window.close()
    Elseif err.number <> 0 then
    window.close()
    Else
    End if
    </script>
    
//    var lPort = 8001;
//    var lChannelNum = 2;
    
    var UserID
    
    function Play()
    {
     var i;
     var Netocx = document.getElementById("NetOCX");
     UserID = Netocx.Login(lpServerIP,lPort,lpUserName,lpPassword);
     i = Netocx.StartRealPlay(lChannelNum,0, 0);  
     if (i == 0)
     {
     alert("预览失败!"); 
     }
    }
    function Stop()
    {
     var Netocx = document.getElementById("NetOCX");
     Netocx.StopRealPlay(); 
     Netocx.Logout();
    }
    function FullScreen()
    {
     var Netocx = document.getElementById("NetOCX");
     Netocx.FullScreenCtrl(); 
    }
    function Play1()
    {
     var Netocx1 = document.getElementById("NetOCX1");
     UserID = Netocx1.Login("172.7.76.85",8000,"admin","12345");
     Netocx1.StartRealPlay(0 ,0, 0);  
    }
    function Stop1()
    {
     var Netocx1 = document.getElementById("NetOCX1");
     Netocx1.StopRealPlay(); 
     Netocx1.Logout();
    }
</script>
#center { 
position:absolute;
left:50%; 
top:15%; 
z-index:1;
margin-left:-150px; 
margin-top:-32px;
width: 407px;
    }        
</style> 
    
    
</head>
          </tr>
          </tr>
        </table>
          <tr>
           standby="Waiting..." >
            </object></td>
          </tr>
          <tr>
         <input type="button" name="Play" value=" 预览 " onclick = "Play()" />
                 </td>
 
          </tr>
        </table>
    </div>
    </form>
</body>
</html>

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="RFIDESD.VideoWeb._Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >    <head runat="server">    <title>菲博特电子科技(深圳)有限公司 E视动调用视频测试</title>    <object >    Netocx1.Logout();    }

 


</script><style type="text/css"> #center { position:absolute;left:50%; top:15%; z-index:1;margin-left:-150px; margin-top:-32px;width: 407px;    }        </style>         </head><body onload="Play()">    <form >          </tr>        </table>    </div>    </form></body></html>

 

//NetVideoActiveX23.cab此文件可到海康官方下载

相关文章:

  • 2021-09-06
  • 2022-01-18
  • 2021-11-23
  • 2021-09-14
  • 2021-12-18
  • 2021-06-04
  • 2021-12-08
  • 2021-07-08
猜你喜欢
  • 2022-12-23
  • 2021-11-23
  • 2021-08-10
  • 2021-09-18
  • 2021-12-28
  • 2021-11-23
相关资源
相似解决方案