<HTML>
<HEAD>
<TITLE>Test ActiveX</TITLE>
</HEAD>
<table>
<tr>
<td>
<object id="HkPlayer1" name="HkPlayer" classid="CLSID:FB9CCAC2-7AA5-4D37-B8A5-96F5F46C87CC" style="width:400px; height:300px;"></object>
<div>
<input type="radio" name ="bType" value="1" onclick="getradio(1);" checked>海康
<input type="radio" name ="bType" value="2" onclick="getradio(2);" >大华
<input type="radio" name ="bType" value="3" onclick="getradio(3);" >宇视科技平台
<input type="radio" name ="bType" value="3" onclick="getradio(4);" >海康IVMS8700平台
</div>
<span>IP:</span><input id="txtIP" type="text" value="10.200.140.10" /><br />
<span>prot:</span><input id="txtPort" type="text" value="8000" /><br />
<span>用户名:</span><input id="txtUserName" type="text" value="admin" /><br />
<span>密码:</span><input id="txtPassword" type="text" value="psl123456" /><br />
<span>通道:</span><input id="txtChannel" type="text" value="1" /><br />
<input id="btnLogin" type="button" value="获取设备信息" onclick="getDevInfo();" />
<input id="btnLogin" type="button" value="注册" onclick="login();" />
<input id="btnLogin" type="button" value="设置登录ID" onclick="SetUserID(1);" />
<input id="btnLogout" type="button" value="注销" onclick="logout();" />
<input id="btnPlay" type="button" value="播放" onclick="startPlay()" />
<input id="btnStop" type="button" value="停止" onclick="stopPlay()" />
<br/>
<input id="btnCapturePicture" type="button" value="抓图" onclick="savePicture()" />
<input id="btnStartCaptureVideo" type="button" value="录像" onclick="startRecordVideo()" />
<input id="btnStopCaptureVideo" type="button" value="停止录像" onclick="stopRecoredVideo()" />
<br/>
<input id="btnLogin" type="button" value="获取平台设备信息" onclick="GetDevInfoPingTai();" />
<input id="btnLogin" type="button" value="平台注册" onclick="LoginPingTai();" />
<input id="btnLogin" type="button" value="设置平台登录ID" onclick="SetUserIDPingTai(1);" />
<input id="btnLogin" type="button" value="海康平台登录ID" onclick="SetUserID(0);" />
<input id="btnLogout" type="button" value="注销" onclick="LogoutPingTai();" />
<input id="btnPlay" type="button" value="平台播放" onclick="StartPlayPingTai()" />
<input id="btnStop" type="button" value="平台停止播放" onclick="StopPlayPingTai()" />
</td>
<td>
<div id="message" style="display:inline;"></div>
</td>
</tr>
</table>
<script type="text/javascript" for="HkPlayer1" event="click()">
alert(this.id);
</script>
<script type="text/javascript" language="javascript" defer="defer">
var activeX = document.getElementById("HkPlayer1");
var stype=1;
var sfile="E:\\";//抓图和视频存放地址
document.getElementById("txtIP").value="10.200.140.10";
document.getElementById("txtPort").value="8000";
document.getElementById("txtUserName").value="admin";
document.getElementById("txtPassword").value="psl123456";
function getradio(i)
{
if(i==1)
{
stype=1;
document.getElementById("txtIP").value="10.200.140.10";
document.getElementById("txtPort").value="8000";
document.getElementById("txtUserName").value="admin";
document.getElementById("txtPassword").value="psl123456";
}
if(i==2)
{
stype=2;
document.getElementById("txtIP").value="192.168.10.11";
document.getElementById("txtPort").value="37777";
document.getElementById("txtUserName").value="admin";
document.getElementById("txtPassword").value="admin";
}
if(i==3)
{
stype=3;
document.getElementById("txtIP").value="192.168.10.212";
document.getElementById("txtPort").value="8800";
document.getElementById("txtUserName").value="wb";
document.getElementById("txtPassword").value="123456";
document.getElementById("txtChannel").value="631f30ca192365465X0";
}
if(i==4)
{
stype=1;
document.getElementById("txtIP").value="172.16.172.117";
document.getElementById("txtPort").value="80";
document.getElementById("txtUserName").value="admin";
document.getElementById("txtPassword").value="Hik12345";
document.getElementById("txtChannel").value="a361677d68af48ceb1f12df19abd3714";
}
}
function SetUserID(i)
{
var r =activeX.SetUserID(i,stype);
addMessage("Login:" + r);
}
function SetUserIDPingTai(i)
{
var r =activeX.SetUserIDPingTai("UserCode","UserLoginCode","UserIpAddress","OrgCode","DomainName","DomainType",stype);
addMessage("Login:" + r);
}
function login() {
var address = txtIP.value;
var port = txtPort.value;
var userName = txtUserName.value;
var password = txtPassword.value;
var r =activeX.Login(address, port, userName, password,stype);
addMessage("Login:" + r);
}
function LoginPingTai() {
var address = txtIP.value;
var port = txtPort.value;
var userName = txtUserName.value;
var password = txtPassword.value;
var r =activeX.LoginPingTai(address, port, userName, password,stype);
addMessage("Login:" + r);
}
function logout() {
var r = activeX.Logout(stype);
addMessage("logout:" + r);
}
function LogoutPingTai() {
var r = activeX.LogoutPingTai(stype);
addMessage("logout:" + r);
}
function startPlay() {
var ch = txtChannel.value;
var r= activeX.StartRealPlay(ch,stype);
addMessage("startPlay:" + r);
}
function StartPlayPingTai() {
var ch = txtChannel.value;
var r= activeX.StartPlayPingTai(ch,stype);
addMessage("startPlay:" + r);
}
function stopPlay() {
var r = activeX.StopRealPlay(stype);
addMessage("stopplay:" + r);
}
function StopPlayPingTai() {
var r = activeX.StopPlayPingTai(stype);
addMessage("stopplay:" + r);
}
function getDevInfo() {
var address = txtIP.value;
var port = txtPort.value;
var userName = txtUserName.value;
var password = txtPassword.value;
var v = activeX.GetDevInfo(address, port, userName, password,stype);
addMessage(v);
}
function GetDevInfoPingTai() {
var address = txtIP.value;
var port = txtPort.value;
var userName = txtUserName.value;
var password = txtPassword.value;
var v = activeX.GetDevInfoPingTai(address, port, userName, password,stype);
addMessage(v);
}
function addMessage(msg) {
var txt = document.getElementById("message").innerHTML;
var d = new Date();
txt += "<br />" + d.getHours() + ":" + d.getMinutes() + ":" + d.getSeconds() + " " + msg;
document.getElementById("message").innerHTML = txt;
}
function savePicture()
{
var ch = txtChannel.value;
var r = HkPlayer.CapturePicture(sfile,ch,stype);
addMessage("savePicture:" + r);
}
function startRecordVideo() {
var ch = txtChannel.value;
var r = HkPlayer.StartRecord(sfile,ch,stype);
addMessage("startRecordVideo:" + r);
}
function stopRecoredVideo() {
var ch = txtChannel.value;
var r = HkPlayer.StopRecord(ch,stype);
addMessage("stopRecoredVideo:" + r);
}
</script>
</HTML>
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
在HTML里面能同时播放海康和大华设备的视频,宇视平台及海康IVMS8700平台的视频,所以有了这个ActiveX控件。可以获取海康和大华的设备信息,设备登录、视频播放、抓图和录像功能。 点击安装后,安装路径下面有Test ActiveX.html页面,用IE打开可以直接使用。
资源推荐
资源详情
资源评论
收起资源包目录
宇视平台、海康IVMS8700平台视频插件 (386个子文件)
Test ActiveX.html.bak 4KB
reg - 副本.bat 256B
reg.bat 29B
imos.cfg 768B
vssCfg.cfg 68B
loginTypeDef.cfg 53B
SDKDemo.conf 810B
log4net.config 2KB
dhnetsdk.dll 6.16MB
activemq-cpp.dll 5.74MB
PlayCtrl.dll 3.57MB
PlayCtrl.dll 3.53MB
PlayCtrl.dll 3.53MB
MP_VIE.dll 3.24MB
MP_VIE.dll 3.24MB
imos_sdk.dll 2.72MB
WPFComponent.dll 2.67MB
store_sys_client.dll 2.07MB
opencv_highgui2410.dll 2.05MB
opencv_core2410.dll 2.04MB
D3DCompiler_43.dll 2.01MB
D3DCompiler_43.dll 2.01MB
HWDecode.dll 2MB
log4cxx.dll 1.98MB
dhconfigsdk.dll 1.94MB
D3DX9_43.dll 1.91MB
D3DX9_43.dll 1.91MB
opencv_imgproc2410.dll 1.81MB
HIE_MP4Play.dll 1.73MB
mp_rd.dll 1.61MB
sps_dao.dll 1.42MB
hlog.dll 1.3MB
isf_stitcher_imos.dll 1.22MB
dsp_h264_enc.dll 1.21MB
Cloud_API.dll 1.2MB
avnetsdk.dll 1.19MB
hsoap.dll 1.19MB
libeay32.dll 1.15MB
mfc90u.dll 1.11MB
mfc90.dll 1.1MB
ISMSSDK.dll 1.1MB
ffmpegmt.dll 1.09MB
HWDecode.dll 1.09MB
dsp_rtplay.dll 1.08MB
HCCore.dll 1.07MB
dhplay.dll 1.07MB
imos_ace.dll 1.05MB
dbghelp.dll 1.03MB
vag_client.dll 1.01MB
dsp_video_h264_1.dll 992KB
HCGeneralCfgMgr.dll 984KB
vrbClientSDK.dll 962KB
opencv_calib3d2410.dll 960KB
libiconv2.dll 956KB
msvcr120.dll 948KB
sps_common.dll 935KB
h264dec.dll 934KB
h264dec.dll 934KB
libxml_XP.dll 925KB
hevcdec.dll 866KB
sps_sdk.dll 860KB
StreamSvr.dll 820KB
xp_frame.dll 813KB
dhplay.dll 804KB
HCCoreDevCfg.dll 792KB
svac_dec.dll 783KB
svac_dec.dll 783KB
xp_player.dll 769KB
cc_sipadpt.dll 767KB
hevcdec.dll 760KB
msvcr100.dll 756KB
HCIndustry.dll 728KB
xp_mobotix_realtime.dll 710KB
opencv_features2d2410.dll 705KB
Infra.dll 660KB
HCNetSDK.dll 648KB
msvcr90.dll 641KB
msvcr90.dll 641KB
mpeg4enc.dll 620KB
mpeg4enc.dll 620KB
HCPreview.dll 605KB
HCDisplay.dll 601KB
amrdec.dll 600KB
amrdec.dll 600KB
AudioIntercom.dll 597KB
HCVoiceTalk.dll 589KB
NetFramework.dll 576KB
SystemTransform.dll 576KB
msvcp90.dll 556KB
dllh264.dll 548KB
dsp_video_h264.dll 548KB
DB33PlayCtrl.dll 537KB
SystemTransform.dll 537KB
libhak.dll 529KB
opencv_flann2410.dll 514KB
msvcp71.dll 488KB
dhlog.dll 473KB
dhlog.dll 473KB
xp_common.dll 450KB
HCAlarm.dll 448KB
共 386 条
- 1
- 2
- 3
- 4
资源评论
- falqs2018-12-17还没用,先收下了
- cocaobuk2018-10-09win10下好像有故障一克代码2021-01-25win10可以使用里面reg手动注册activeX控件
一克代码
- 粉丝: 179
- 资源: 60
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 多机调度问题贪心算法:理论探索与实践应用.zip
- 探索tecreate:软件开发的未来之星.zip
- 打标机项目C#源码连接扫码
- 基于SSM的房屋租赁系统的设计与实现
- xyctf:从入门到精通的实用指南.zip
- mmqrcode1714153659780.png
- Screenshot_2024-04-27-06-08-58-486_com.baidu.xin.aiqicha.jpg
- 基于Javaweb+Tomcat+MySQL的大学生公寓管理系统+sql文件.zip
- 实训作业基于javaweb的订单管理系统源码+数据库+实训报告.zip
- 多机调度问题贪心算法基于最小堆和贪心算法求解多机调度问题.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功