! function() {
if (!window.WebVideoCtrl) {
var e = function() {
function e(e, t, n) {
return (e << 16 | t << 8 | n).toString(16)
}
function n(e, t) {
return (Array(t).join("0") + e).slice(-t)
}
function r(e) {
var t = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
if (e && t.test(e)) {
if (4 === e.length) {
for (var n = "#", r = 1; 4 > r; r += 1) n += e.slice(r, r + 1).concat(e.slice(r, r + 1));
e = n
}
for (var s = [], r = 1; 7 > r; r += 2) s.push(parseInt("0x" + e.slice(r, r + 2)));
return "[" + s.join(",") + ",0.6]"
}
return e
}
function s() {
return void 0 !== s.unique ? s.unique : (this.szIP = "", this.szHostName = "", this.szAuth = "", this.szHttpProtocol = "http://", this.iCGIPort = 80, this.szDeviceIdentify = "", this.iDevicePort = -1, this.iHttpPort = -1, this.iHttpsPort = -1, this.iRtspPort = -1, this.iWSPort = -1, this.iAudioType = 1, this.m_iAudioBitRate = -1, this.m_iAudioSamplingRate = -1, this.iDeviceProtocol = x, this.oProtocolInc = null, this.iAnalogChannelNum = 0, this.szDeviceType = "", this.bVoiceTalk = !1, this.oAuthType = {}, this.oStreamCapa = {
bObtained: !1,
bSupportShttpPlay: !1,
bSupportShttpPlayback: !1,
bSupportShttpsPlay: !1,
bSupportShttpsPlayback: !1,
bSupportShttpPlaybackTransCode: !1,
bSupportShttpsPlaybackTransCode: !1,
iIpChanBase: 1
}, s.unique = this, void 0)
}
function o() {
this.id = this.createUUID()
}
var a = "100%",
u = "100%",
c = "",
l = "";
oSecurityCap = {}, szAESKey = "";
var d = {
szversion: "websdk3.220200429",
szContainerID: "",
szColorProperty: "",
szOcxClassId: "clsid:FDF0038A-CF64-4634-81AB-80F0A7946D6C",
szMimeTypes: "application/webvideo-plugin-kit",
szBasePath: "",
iWndowType: 1,
iPlayMode: 2,
bWndFull: !0,
iPackageType: 2,
bDebugMode: !1,
bNoPlugin: !0,
cbSelWnd: null,
cbDoubleClickWnd: null,
cbEvent: null,
cbRemoteConfig: null,
cbInitPluginComplete: null,
proxyAddress: null
},
p = null,
f = 0,
h = !1,
P = [],
I = [],
m = null,
v = null,
C = null,
S = null,
y = this,
g = null;
this.w_options = d, this.w_deviceSet = P, this.w_wndSet = I, this.w_xmlLocalCfg = g;
var x = 1,
D = 2,
z = 200,
b = 0,
T = 1,
A = 2,
M = 3,
L = 4,
q = 5,
R = 6,
w = 0,
G = 2,
W = 3,
X = 21,
_ = -1,
H = 0,
k = "IPCamera",
E = "IPDome",
Z = "IPZoom",
B = "3,0,6,23,0,6,27,3,3,611,1,3,62,5,2,81,0,5,59";
window.GetSelectWndInfo = function(e) {
if (ct()) {
f = e;
var n = [];
n.push(""), n.push("" + e + ""), n.push(""), d.cbSelWnd && d.cbSelWnd(S.loadXML(n.join("")))
} else {
var r = S.loadXML(e);
if (t.$XML(r).find("SelectWnd", !0).length > 0) {
f = parseInt(t.$XML(r).find("SelectWnd").eq(0).text(), 10), null === g && Y();
var n = [];
n.push(""), n.push("" + f + ""), n.push(""), d.cbSelWnd && d.cbSelWnd(S.loadXML(n.join("")))
} else if (t.$XML(r).find("DoubleClickWnd", !0).length > 0) {
var s = parseInt(t.$XML(r).find("DoubleClickWnd").eq(0).text(), 10);
h = "0" === t.$XML(r).find("IsFullScreen").eq(0).text(), d.cbDoubleClickWnd && d.cbDoubleClickWnd(s, h)
}
}
}, window.WindowDblClick = function(e) {
h = e, d.cbDoubleClickWnd && d.cbDoubleClickWnd(f, h)
}, window.ZoomInfoCallback = function(e) {
var t = y.findWndIndexByIndex(f);
if (-1 != t) {
var n = I[t];
if (t = y.findDeviceIndexByIP(n.szDeviceIdentify), -1 != t) {
var r = P[t];
r.oProtocolInc.set3DZoom(r, n, e, {
success: function() {},
error: function() {}
})
}
}
}, window.PluginEventHandler = function(e, t, n) {
ct() ? d.cbEvent && d.cbEvent(e, t, n) : (w == t || G == t ? y.I_Stop(e) : X == t ? y.I_StopRecord(e) : W == t && y.I_StopVoiceTalk(), d.cbEvent && d.cbEvent(t, e, n))
}, window.GetHttpInfo = function(e, t) {
Pt.prototype.processCallback(e, t)
}, window.RemoteConfigInfo = function(e) {
d.cbRemoteConfig && d.cbRemoteConfig(e)
}, window.KeyBoardEventInfo = function(e) {
100 === parseInt(e, 10) && (h = !1, d.cbDoubleClickWnd && d.cbDoubleClickWnd(f, h))
};
var N = function() {
if (d.bDebugMode) {
var e = F(arguments);
m._alert(e)
}
},
F = function() {
for (var e = arguments[0], t = 1; t < arguments.length; t++) e = e.replace("%s", arguments[t]);
return e
},
V = function(e) {
var t = e.indexOf(":");
return t > -1 ? e.substring(0, t) : e
},
U = function(e) {
return "undefined" == typeof e
},
j = function(e) {
return "[object Object]" === Object.prototype.toString.call(e)
},
O = function(e, t) {
if (e.oAuthType[e.szIP] < 2) {return "";}
var n = "",
r = {
type: "GET",
async: !1,
success: function(e) {
e && e.Token && (n = e.Token.value)
}
},
s = "ISAPI/Security/token?format=json";
return y.I_SendHTTPRequest(t, s, r), n
},
J = function(e, n, r) {
y.I_GetSecurityVersion(e, {
success: function(e) {
oSecurityCap.iKeyIterateNum = parseInt(t.$XML(e).find("keyIterateNum").eq(0).text(), 10), oSecurityCap.oIrreversibleEncrypt = {
bSupport: "true" === t.$XML(e).find("isIrreversible").eq(0).text(),
salt: t.$XML(e).find("salt").eq(0).text()
}, szAESKey = S.strToAESKey(n, r)
}
})
},
K = function() {
var e = "";
if (S.browser().msie) e = "";
else
for (var t = navigator.mimeTypes.length, n = 0; t > n; n++) navigator.mimeTypes[n].type.toLowerCase() == d.szMimeTypes && (e = "