Monitoring web plug-in installation and use of summary

In fact, the plug-in installation has been a good deal, and will not occur again in the past that need to manually copy and then took out operating cmd self-registered, but in order to fully, the problem with all plug-ins before I met here record it, if you want to learn more, please visit anthology - vue integrated surveillance video .

Kang mounting web 2.3

The installation can be said to be the most troublesome, and if you need to develop, do not use this plug-in, go to Kang web plug-in 3.0, this article where you can find the corresponding plug-ins . Exe that can be installed directly, using them a lot easier.

Registration module failures

Let's start looking web2.3 problem, install the basic package will have such a SDKInitbatch file, execute the batch after installing the plug-in is likely to occur following question failed to load

13523736-9c4d53d13e3a2cdf.png
SDKInit installation fails

This time we want to manually copy NetVideoActiveX23the files in the specified directory, 32 are copied to the C:\WINDOWS\system32folder, copy the 64-bit system to a C:\WINDOWS\SysWOW64folder, but a direct copy, then we will always need permission to pop up a dialog box.

13523736-03a2389d10e52aee.png
It has pop-up permissions required

This time we opened in administrator mode cmd, with a copycopy to the command, as follows, and here I plug in a D:\hkocxfolder, the goal is to copy the system 64bit folder. Please adjust your own plug-ins to the folder where the file:

copy D:\hkocx\NetVideoActiveX23 C:\WINDOWS\SysWOW64

Then Enter will let you choose whether to overwrite option, where the input Allcan be:

13523736-53b46d6f82762f6b.png
Overwrite files

注意,如果出现上图中 另一个程序正在使用此文件,进程无法访问的问题,最好重启重新安装,而上面那个”拒绝访问“不用去管它。复制完成后在找到同文件夹下的cmd执行注册命令即可(不过现在基本都是64位的系统了,32位的安装步骤可以忽略):

32位

regsvr32  "C:\Windows\system32\NetVideoActiveX23.ocx"

64位

regsvr32  "C:\Windows\SysWOW64\NetVideoActiveX23.ocx"

这时候就能看到注册成功了,注意全程一定要使用管理员执行

13523736-f028fe75d26ff4ab.png
注册成功

插件安装好了之后打不开

这个问题涉及到的地方很多,主要有四个地方:

  • 插件未安装成功
  • IE 浏览器未允许 ActiveX 插件
  • IE 浏览器使用的不是 11 内核
  • IE 没有启动 32 位版本

插件是否安装成功

咱们一个一个的讲,关于插件是否安装成功这个很好判断,无论是什么插件,开发包里都会有一个 demo 页面,用它可以很轻松的检查插件是否可用,功能是否完善,如果你研究一下 demo 的话,就可以很快的写出一个只包含基本功能的页面来进行快速检查。

IE 浏览器是否允许 ActiveX 插件

这个可以访问 Internet 选项 > 安全 > 自定义级别 > ActiveX控件与插件 来进行检查。

13523736-aa0fe71461f5d670.png
ActiveX控件与插件

当然也可以使用批处理进行快速设置,下面贴一下代码,这段代码来自于海康 web2.3 开发包中的resetIE.bat文件,至于怎么使用这段代码请自行百度:

echo off
title    ★  IE ActiveX 插件启用脚本   ★
cls
echo.
echo   本脚本可快速启用IE的 ActiveX控件、JAVA脚本、活动脚本,请稍候...
ping 127.0.0.1 -n 6 >nul 2>nul
set bl=0
:setreg
if "%bl%"=="5" goto ex

set regpath=HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\%bl%
cls
echo.
echo   本脚本可快速启用IE的 ActiveX控件、JAVA脚本、活动脚本
echo   正在进行 ZONE%bl% 的设置...
:启用“activeX控件”“JAVE小程序脚本”“活动脚本”
@reg add "%regpath%" /v "1001" /d "1" /t REG_DWORD /f
@reg add "%regpath%" /v "1004" /d "1" /t REG_DWORD /f
@reg add "%regpath%" /v "1200" /d "0" /t REG_DWORD /f
@reg add "%regpath%" /v "1201" /d "1" /t REG_DWORD /f
@reg add "%regpath%" /v "1208" /d "0" /t REG_DWORD /f
@reg add "%regpath%" /v "1209" /d "0" /t REG_DWORD /f
@reg add "%regpath%" /v "120A" /d "0" /t REG_DWORD /f
@reg add "%regpath%" /v "1400" /d "0" /t REG_DWORD /f
@reg add "%regpath%" /v "1402" /d "0" /t REG_DWORD /f
@reg add "%regpath%" /v "1405" /d "1" /t REG_DWORD /f
@reg add "%regpath%" /v "1605" /d "0" /t REG_DWORD /f
@reg add "%regpath%" /v "1609" /d "0" /t REG_DWORD /f
@reg add "%regpath%" /v "1804" /d "0" /t REG_DWORD /f
@reg add "%regpath%" /v "2000" /d "0" /t REG_DWORD /f
@reg add "%regpath%" /v "2201" /d "0" /t REG_DWORD /f
@reg add "%regpath%" /v "2702" /d "0" /t REG_DWORD /f
@reg add "%regpath%" /v "2300" /d "0" /t REG_DWORD /f
@reg add "%regpath%" /v "CurrentLevel" /d "0" /t REG_DWORD /f

set /a bl=%bl%+1
goto setreg

:ex
echo   设置完毕,请打开IE测试一下是否正常,若不正常,建议关闭所有IE再次运行本脚本。
echo   本程序稍后自动关闭...
exit

IE 浏览器使用的是否为 11 内核

因为最新版的 IE11 是可以模拟之前的版本的,而只有 11 的内核对监控播放的支持比较好,所以如果使用的是之前版本的内核的话就有可能导致 视频插件加载不出来 或者 插件加载出来了但是播放不了 的问题。

想要检查当时页面使用的浏览器内核版本的话可以通过 F12开发者工具 > 仿真选项卡 > 文档模式 来查看,通过下图黄框处也可以直接看出当前内核版本:

13523736-33a4b0d7070db7c4.png
查看内核版本

如果你发现所用的不是 11 内核的话,下拉框选择为 11 之后 在不关闭开发者工具的情况下 查看监控是否可以正常播放。如果没有 11 的话请检查 IE 的版本。至于为什么不能关闭开发者工具,是因为在此处设置的内核版本在关闭开发者工具后就失效重新变成之前的内核了。如果想要一劳永逸,可以使用 html 的 meta 标签来进行指定(参考 ie浏览器模式和文档模式的选用 meta标签写法):

<meta http-equiv="X-UA-Compatible" content="IE=11" />

IE 是否启动 32 位版本

所有的插件播放都是基于32位的 IE 进行播放的,但是现在64位的 IE11 会默认启动一个32位的 IE,所以并不会造成什么影响。但是凡事都有例外,某些精简过的 win7 镜像会删掉32位的 IE 或者其他什么原因会导致其无法自动启动。当然,如果你是32位的系统的话就可以跳过这一步了,只要能打开 IE 就可以了。接下来是64位系统确认的步骤:

方法1:启动 IE 后打开任务管理器,检查是否包含两个版本的 IE :

13523736-5a6648a656b7644a.png
32位IE一并启动

方法2:C盘里是否有C:\Program Files (x86)\Internet Explorer文件夹,没有的话就说明32位的 IE 因为某些原因被精简掉了。

至于怎么恢复,本文就不做讨论了,毕竟网上教程一抓一大把,实在不行重装个官方的系统也完全没有问题。

其他问题

You must use IE core open! Never believe that customers say: "Yes IE is ah, as I use is this." Be sure to personally check, and use the browser with IE kernel is also theoretically possible, such as a public domestic dual-core browser, but I do not have specific confirmation, while confirming must pay attention to whether the use of compatibility mode (IE kernel).

Please always check there is no pop-up whether the use of plug-ins to run the prompt box, pops up the middle of the box is still very prominent, but under a small strip of balloon does exist a sense a bit low, so remember to always check.

Guess you like

Origin blog.csdn.net/weixin_34290000/article/details/90952919