(function(e) {
if (!e.WebVideoCtrl) {
var t = function() {
function t() {
this.id = this.createUUID()
}
var n = "100%",
r = "100%",
o = "",
i = "",
a = {
szContainerID: "",
szColorProperty: "",
szOcxClassId: "clsid:FDF0038A-CF64-4634-81AB-80F0A7946D6C",
szMimeTypes: "application/webvideo-plugin-kit",
iWndowType: 1,
iPlayMode: 2,
bDebugMode: !1,
cbSelWnd: null,
cbEvent: null
},
u = null,
c = 0,
l = [],
p = [],
d = null,
P = null,
h = null,
I = null,
f = this,
m = null,
C = 1,
S = 2,
y = 200,
g = 0,
v = 1,
x = 2,
T = 3,
z = 4,
D = 5,
A = 6,
b = 0,
M = 2,
q = 3,
L = 21,
R = 0,
G = "IPCamera",
X = "IPDome",
H = "IPZoom",
w = "<?xml version='1.0' encoding='utf-8'?><FileVersion><Platform name='win32'><npWebVideoKitPlugin.dll>3,0,6,2</npWebVideoKitPlugin.dll><WebVideoKitActiveX.ocx>3,0,6,2</WebVideoKitActiveX.ocx><PlayCtrl.dll>7,3,3,61</PlayCtrl.dll><StreamTransClient.dll>1,1,3,6</StreamTransClient.dll><SystemTransform.dll>2,5,2,8</SystemTransform.dll><NetStream.dll>1,0,5,59</NetStream.dll></Platform></FileVersion>";
e.GetSelectWndInfo = function(e) {
var t = I.loadXML(e);
c = parseInt(s.$XML(t).find("SelectWnd").eq(0).text(), 10);
var n = [];
n.push("<RealPlayInfo>"),
n.push("<SelectWnd>" + c + "</SelectWnd>"),
n.push("</RealPlayInfo>"),
a.cbSelWnd && a.cbSelWnd(I.loadXML(n.join("")))
},
e.ZoomInfoCallback = function(e) {
var t = f.findWndIndexByIndex(c);
if ( - 1 != t) {
var s = p[t];
if (t = f.findDeviceIndexByIP(s.szIP), -1 != t) {
var n = l[t];
n.oProtocolInc.set3DZoom(n, s, e, {
success: function() {},
error: function() {}
})
}
}
},
e.PluginEventHandler = function(e, t, s) {
Z("插件事件:PluginEventHandler iEventType:%s iParam1: %s, iParam2: %s", e, t, s),
b == e || M == e ? f.I_Stop(t) : L == e ? f.I_StopRecord(t) : q == e && f.I_StopVoiceTalk(),
a.cbEvent && a.cbEvent(e, t, s)
},
e.GetHttpInfo = function(e, t) {
Z("http响应返回:http状态:%s, http数据:%s", e, t),
et.prototype.processCallback(e, t)
};
var Z = function() {
if (a.bDebugMode) {
var e = k(arguments);
d._alert(e)
}
},
k = function() {
for (var e = arguments[0], t = 1; arguments.length > t; t++) e = e.replace("%s", arguments[t]);
return e
},
W = function(e) {
return e === void 0
},
_ = function() {
var e = "";
if (I.browser().msie) e = "<object classid='" + a.szOcxClassId + "' codebase='' standby='Waiting...' " + "id='" + o + "' width='" + n + "' height='" + r + "' align='center' >" + "<param name='wndtype' value='" + a.iWndowType + "'>" + "<param name='playmode' value='" + a.iPlayMode + "'>" + "<param name='colors' value='" + a.szColorProperty + "'></object>";
else for (var t = navigator.mimeTypes.length,
s = 0; t > s; s++) navigator.mimeTypes[s].type.toLowerCase() == a.szMimeTypes && (e = "<embed align='center' type='" + a.szMimeTypes + "' width='" + n + "' height='" + r + "' name='" + i + "' wndtype='" + a.iWndowType + "' playmode='" + a.iPlayMode + "' colors='" + a.szColorProperty + "'>");
return e
},
E = function() {
var e = u.HWP_GetLocalConfig();
m = I.loadXML(e)
},
N = function(e) {
f.I_GetDeviceInfo(e.szIP, {
success: function(t) {
e.szDeviceType = s.$XML(t).find("deviceType").eq(0).text()
}
}),
f.I_GetAnalogChannelInfo(e.szIP, {
success: function(t) {
e.iAnalogChannelNum = s.$XML(t).find("VideoInputChannel", !0).length
}
}),
f.I_GetAudioInfo(e.szIP, {
success: function(t) {
var n = s.$XML(t).find("audioCompressionType", !0);
if (n.length > 0) {
var r = s.$XML(n).eq(0).text(),
o = 0;
"G.711ulaw" == r ? o = 1 : "G.711alaw" == r ? o = 2 : "G.726" == r && (o = 3),
e.iAudioType = o
}
}
})
},
B = function(e) {
var t = -1,
s = -1,
n = -1,
r = null;
if (O(e)) r = F(e),
t = r.iRtspPort,
n = r.iDevicePort;
else {
for (var o = V(e), i = !1, a = 0; o.length > a; a++) if (o[a].ipv4 == e.szIP || o[a].ipv6 == e.szIP) {
i = !0;
break
}
i ? r = F(e) : (r = U(e), -1 == r.iRtspPort && -1 == r.iDevicePort && (r = F(e))),
t = r.iRtspPort,
s = r.iHttpPort,
n = r.iDevicePort
}
return r
},
F = function(e) {
var t = -1,
n = -1,
r = -1;
return e.oProtocolInc.getPortInfo(e, {
async: !1,
success: function(e) {
for (var o = s.$XML(e).find("AdminAccessProtocol", !0), i = 0, a = o.length; a > i; i++)"rtsp" === s.$XML(o).eq(i).find("protocol").eq(0).text().toLowerCase() && (t = parseInt(s.$XML(o).eq
webVideoCtrl.js 1.0.6-1.0.9-1.1.0.zip
需积分: 47 49 浏览量
2020-03-19
16:39:11
上传
评论
收藏 91KB ZIP 举报
gbfreedown
- 粉丝: 4
- 资源: 17
最新资源
- Unity XR 手势射击控制脚本(适用于任何可手势识别的设备)
- 机械设计全自动电表(NB和IC卡表)控制和上壳装配线sw16可编辑非常好的设计图纸100%好用.zip
- 基于matlab的EAN-13条形码识别系统GUI界面.zip代码53
- matlab基于bp神经网络交通信号标志识别GUI界面13个标志.zip代码54
- 电子万年历答辩实物展示视频mp4格式
- 基于python实现的程序,包括哈希感知算法cvHash,图像切割cvsplit,固定目标检测cvRec(附文档ppt)等
- 计算0-10000之间所有偶数的和
- multiled.zip
- 基于php实现的哈希算法的人脸检索
- 单片机 电子钟 设计报告/课程设计
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈