**
1.下载OCX插件http://download.csdn.net/detail/whzhaochao/5965005
2. 注册OCX控件
3. 配置SSOcx.SetDeviceInfo(“ip地址”, 端口, 通道号, “账户名”, “密码”);方法
4. 以下是示例代码,可以复制直接运行,修改摄像头配置即可。
**

<!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><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>视频控件</title><style>body{font-family: "" , arial;margin: 0 auto;padding: 0;}div, form, img, ul, p{margin: 0 auto;padding: 0;border: 0;overflow: hidden;list-style-type: none;}h1, h2, h3, h4, h5, h6{margin: 0;padding: 0;}.bigbg{width: 1280px;height: 820px;position: relative;top: 50px;background: #fff;}.kuang{background: url(img/video_03.gif) no-repeat;width: 1280px;height: 820px;margin-top: 12px;}.close a{background: url(img/1_04.gif) no-repeat;width: 41px;height: 36px;position: absolute;left: 618px;top: 5px;}.close a:hover{background: url(img/2_04.gif) no-repeat;with: 41px;height: 36px;position: absolute;left: 618px;top: 5px;}.videoscreen{width: 1280px;height: 720px;background-color: #999;position: absolute;right: 17px;top: 45px;}.sfream{background: url(img/video_05.jpg) no-repeat;width: 627px;height: 42px;margin-top: 400px;}.play a{background: url(img/video_25.gif) no-repeat;width: 19px;height: 19px;position: absolute;left: 26px;bottom: 17px;}.pause a{background: url(img/video_26.gif) no-repeat;width: 21px;height: 19px;position: absolute;left: 46px;bottom: 17px;}.progressbar a{background: url(img/video_28.gif) no-repeat;width: 291px;height: 20px;position: absolute;left: 76px;bottom: 17px;}.snapshot-picture a{background: url(img/video_16.gif) no-repeat;width: 25px;height: 25px;position: absolute;left: 377px;bottom: 17px;}.stepback a{background: url(img/video_18.gif) no-repeat;width: 24px;height: 25px;position: absolute;left: 409px;bottom: 17px;}.camera a{background: url(img/video_20.gif) no-repeat;width: 26px;height: 27px;position: absolute;left: 439px;bottom: 14px;}.stopcamera a{background: url(img/video_22.gif) no-repeat;width: 27px;height: 27px;position: absolute;left: 472px;bottom: 14px;}.singlescreen a{background: url(img/video_09.gif) no-repeat;width: 31px;height: 29px;position: absolute;left: 506px;bottom: 12px;}.doublescreen a{background: url(img/video_11.gif) no-repeat;width: 31px;height: 29px;position: absolute;left: 546px;bottom: 12px;}.ninescreen a{background: url(img/video_13.gif) no-repeat;width: 32px;height: 29px;position: absolute;left: 586px;bottom: 12px;}.ninescreen a:hover{background: url(img/design_05.gif) no-repeat;width: 40px;height: 29px;position: absolute;left: 586px;bottom: 82px;}</style><script language="javascript">function StartPreview() {alert("开始");var SSOcx = document.getElementById("playOcx");SSOcx.SetDeviceInfo("172.30.20.341", 80, 0, "admin", "xxxx");SSOcx.StartPlay();}function StoptPreview() {var SSOcx = document.getElementById("playOcx");SSOcx.StopPlay();}function Capture() {var SSOcx = document.getElementById("playOcx");var dd = SSOcx.GetCapturePicture("d:\\1.bmp");}function StartRecord() {var SSOcx = document.getElementById("playOcx");SSOcx.SaveRealData("d:\\1.avi");}function StopRecord() {var SSOcx = document.getElementById("playOcx");SSOcx.StopSaveRealDate();}  </script>
</head>
<body><div class="bigbg"><div class="kuang"><div class="videoscreen"><td width="50%" align="right" style="padding-right: 50px"><object classid="clsid:30209FBC-57EB-4F87-BF3E-740E3D8019D2" codebase="" standby="Waiting..."id="playOcx" width="1280" height="720" name="playOcx" align="center"><embed width="618" height="360" align="center"></embed></object></td></div><div class="sfream"><div class="play"><a href="javascript:StartPreview()">播放</a><br /></div><div class="pause"><a href="javascript:StoptPreview()">暂停</a><br /></div><div class="progressbar"><a href=""></a></div><div class="snapshot-picture"><a href="javascript:Capture()">拍照</a><br /></div><div class="stepback"><a href=""></a></div><div class="camera"><a href="javascript:StartRecord()">录制</a><br /></div><div class="stopcamera"><a href="javascript:StopRecord()">停止录制</a></div><div class="singlescreen"><a href=""></a></div><div class="doublescreen"><a href=""></a></div><div class="ninescreen"><a href=""></a></div></div></div><div class="close"><a href=""></a></div></div>
</body>
</html>

大华摄像头视频接入(一)相关推荐

  1. WEB页面播放大华摄像头视频解决方案

    目前在网页上播放大华摄像头视频,有如下2种途径: 1)首选获取摄像头的hls协议地址,H5可直接播放 2)获取摄像头rtsp协议地址,用ffmpeg转换成hls再播放 近期做的一个项目,需要在WEB端 ...

  2. php大华视频监控接入,大华摄像头实时视频接入Demo

    [实例简介] 亲测可用,这是使用大华sdk接入大华摄像头实时视频的winform测试程序 [实例截图] [核心代码] 大华摄像头实时视频demo-源码 ├── NetSDKCS │   ├── bin ...

  3. 部署 WVP+ZLMediaKit 实现大华摄像头接入

    0. 整体部署安排 redis 服务:172.22.100.172:10284 ZLMediaKit:172.22.100.177 WVP:172.22.100.54 1. 部署 ZLMediaKit ...

  4. java制作h5视频聊天_JAVA实现大华摄像头WEB方式实时显示视频,H5界面展示方式思路。...

    JAVA实现大华摄像头WEB方式实时显示视频,H5界面展示方式思路. 2018-09-17 问题:大华IPC枪型摄像头需要在WEB中显示实时监控视频,官方提供的SDK只有C#的桌面程序访问方式. 解决 ...

  5. 大华摄像头:视频抓图接口

    大华摄像头:视频抓图接口 CLIENT_CapturePictureEx 保存图片,对显示图像进行瞬间抓图 CLIENT_SetSnapRevCallBack 设置抓图回调函数 CLIENT_Snap ...

  6. JAVA实现大华摄像头WEB方式实时显示视频,H5界面展示方式思路。

    问题:大华IPC枪型摄像头需要在WEB中显示实时监控视频,官方提供的SDK只有C#的桌面程序访问方式. 解决思路: RTSP协议访问方式将RTSP流转换成hls文件在H5的video播放器中进行播放实 ...

  7. python_获取网络(大华)摄像头画面,并存储为图片和视频

    导入库 pip install opencv-python 代码 网络摄像头 ''' Opencv-python读取IP摄像头视频流 pip install opencv-python '''impo ...

  8. 怎么样将摄像头视频接入到你的大屏上

    怎么样将摄像头视频接入到你的大屏上 摄像头属于传统安防设备,一般是接入到NVR中,通过NVR进行视频的存储或投到电视墙上面.但是在很多智慧园区,农业,水务,市场监管.电力等行业解决方案上,领导们喜欢在 ...

  9. ONVIF方式将大华摄像头接入海康威视录像机

    ONVIF方式将大华摄像头接入海康威视录像机 一.大华摄像头启用ONVIF,录像机添加后可通过云台控制方向 二.大华摄像头添加新的ONVIF用户 三.海康威视录像机添加摄像头

最新文章

  1. OpenGL Texture Coordinate Wrapping纹理坐标包装的实例
  2. [转]微软代码示例:ASP.NET 2.0 三层架构应用程序教程系列
  3. 电脑分辨率是什么_吵翻天的2K、3K、4K屏到底是什么鬼?
  4. 考拉Android全局滑动返回及联动效果的实现
  5. MySQL驱动jar包的下载--保姆教程
  6. smartsvn基本操作
  7. 几个很实用的软件 root 改机 软改 硬改 改串号 改设备 参数生成器APK 电脑软件
  8. Windows常用cmd命令总结
  9. 坐标转换-大地转高斯平面平面坐标转换
  10. UG NX 12 同步建模技术
  11. 分析方法4---多维度拆解分析
  12. NLP实操手册: 基于Transformer的深度学习架构的应用指南(综述)
  13. el-tree 默认展开第一级节点
  14. cydia java_Cydia for Android
  15. node npm 升级
  16. 苯酚丙酮装置类型和重大部分设备说明
  17. 腾讯云服务器SSH远程登录
  18. 智慧园区智能化系统管理现状分析
  19. 不足一年下跌830 麒麟970+128G 2400万像素手机加速清仓!
  20. 海滩上有一堆桃子,五只猴子来分(C语言)

热门文章

  1. 剑指 Offer 12. 矩阵中的路径
  2. 【数字图像处理】前期准备工作,库的安装(skimage库的安装!)
  3. originPro2021(4)origin导出图片且去除demo水印
  4. 网易云音乐歌单制作词云图
  5. oracle数据库导出灰色_Oracle数据库导入导出命令总结
  6. 荣誉加持,驭势科技近期斩获奖项回顾
  7. 考研复习--高等数学
  8. 实习第一天——网宿报到日
  9. 顺序队列,链队列的基本操作
  10. 利用js写一个函数,实现翻转任意数组。 写一个函数,实现对数字数组的排序。