1
Webplugin.exe(WEB3.2)控件接口说明文档
编写时间:2014-10-13
2
1 修订记录
时间
修订内容
修订人
2014-10-13
创建
陈振兴
3
目录
1 属性:........................................................................................................................................5
1.1 视频窗口数...................................................................................................................5
1.2 设备端口.......................................................................................................................5
1.3 播放窗口背景色...........................................................................................................5
1.4 播放窗口工具条颜色...................................................................................................5
1.5 播放窗口工具条文字色...............................................................................................6
2 接口方法:................................................................................................................................7
2.1 登陆设备.......................................................................................................................7
2.2 退出登陆.......................................................................................................................7
2.3 连接实时监控...............................................................................................................7
2.4 断开实时监控...............................................................................................................8
2.5 打开所有通道的实时监视...........................................................................................8
2.6 关闭所有通道的实时监视...........................................................................................8
2.7 设置监视视频窗口的个数...........................................................................................9
2.8 窗口切换到全屏...........................................................................................................9
2.9 切换视频的模式...........................................................................................................9
2.10 获取通道数.................................................................................................................10
2.11 获取登陆的 ID............................................................................................................10
2.12 设置语音对讲模式.....................................................................................................11
2.13 获取通道名称.............................................................................................................11
2.14 语音对讲.....................................................................................................................11
2.15 设置颜色值.................................................................................................................12
2.16 获取颜色值.................................................................................................................12
2.17 切换至全屏模式.........................................................................................................12
2.18 开始网络回放.............................................................................................................13
2.19 停止网络回放.............................................................................................................13
2.20 暂停网络回放.............................................................................................................13
2.21 网络快放.....................................................................................................................14
2.22 按文件回放录像.........................................................................................................14
2.23 获取文件保存路径.....................................................................................................14
2.24 设置文件保存路径.....................................................................................................15
2.25 显示浏览对话框.........................................................................................................15
2.26 设置选中窗口.............................................................................................................15
2.27 获得当前播放器的播放时间.....................................................................................15
2.28 设置插件中用到的翻译字符串.................................................................................16
2.29 打开本地录像.............................................................................................................16
2.30 暂停本地回放.............................................................................................................16
2.31 停止本地回放.............................................................................................................17
2.32 播放本地录像.............................................................................................................17
2.33 本地回放慢放.............................................................................................................17
2.34 本地回放快放.............................................................................................................18
2.35 逐帧播放.....................................................................................................................18
2.36 本地回放播放上一帧.................................................................................................18
4
2.37 连接公网模式下的实时监视.....................................................................................19
2.38 按文件下载录像文件.................................................................................................19
2.39 停止录像下载.............................................................................................................19
2.40 设置窗口对应的通道号.............................................................................................20
2.41 将字符串保存到文件中.............................................................................................20
2.42 读文本文件的内容.....................................................................................................20
2.43 按时间下载录像文件.................................................................................................21
2.44 停止按时间录像下载.................................................................................................21
2.45 设置视频的画质.........................................................................................................21
2.46 设置视频的实时性.....................................................................................................22
3 事件..........................................................................................................................................23
3.1 返回本地回放状态.....................................................................................................23
3.2 返回窗口状态.............................................................................................................23
3.3 返回三位定位信息.....................................................................................................24
3.4 返回按文件下载进度.................................................................................................24
3.5 返回回放窗口状态.....................................................................................................25
3.6 返回下载录像剪辑进度.............................................................................................25
3.7 返回某月录像状态.....................................................................................................26
3.8 返回某通道录像信息.................................................................................................26
3.9 返回网络播放时间信息.............................................................................................26
3.10 返回预览窗口状态.....................................................................................................27
4 附录 1(浏览器嵌入插件代码示例)...................................................................................28
5
1 接口方法:
1.1 登陆设备
方法 1
方法名称
LoginDeviceEx
功能描述
登陆设备;
参数名称
内部类型
说明
参数 1
szIP
LPCTSTR
设备 IP;
参数 2
lPort
long
端口(注意:此值非 0 有效,如果为
0,则使用属性 SetHostPort。)
参数 3
szName
LPCTSTR
登陆设备用户名;
参数 4
szPassWord
LPCTSTR
密码
参数 5
nType
short
登陆方式(0-tcp, 3-udp, 4-组播)
返回值类型
long
返回值说明
TRUE(1) 登陆成功
FALSE(0) 登陆失败
定义
BOOL LoginDeviceEx(BSTR lpstrDeviceIp, long lPort, BSTR
lpstrUsername, BSTR lpstrPassword, short lSpecCap)
1.2 退出登陆
方法 2
方法名称
LogoutDevice
功能描述
退出设备;
参数名称
内部类型
说明
无参数
返回值类型
BOOL
返回值说明
TRUE(1) 成功
FALSE(0) 失败
定义
BOOL LogoutDevice();
1.3 连接实时监控
方法 3
方法名称
ConnectRealVideo
功能描述
连接实时监控;
参数名称
内部类型
说明