!function(e){if(!e.WebVideoCtrl){var t=function(){function t(){this.id=this.createUUID()}var r="100%",s="100%",o="",i="",a={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},c=null,u=0,l=!1,d=[],p=[],P=null,h=null,I=null,f=null,m=this,C=null,S=1,v=2,y=200,g=0,x=1,D=2,z=3,T=4,b=5,A=6,M=0,R=2,L=3,q=21,G=-1,W=0,X="IPCamera",w="IPDome",H="IPZoom",k="3,0,6,23,0,6,27,3,3,611,1,3,62,5,2,81,0,5,59";e.GetSelectWndInfo=function(e){if(re()){u=e;var t=[];t.push(""),t.push(""+e+""),t.push(""),a.cbSelWnd&&a.cbSelWnd(f.loadXML(t.join("")))}else{var r=f.loadXML(e);if(n.$XML(r).find("SelectWnd",!0).length>0){u=parseInt(n.$XML(r).find("SelectWnd").eq(0).text(),10),null===C&&U();var t=[];t.push(""),t.push(""+u+""),t.push(""),a.cbSelWnd&&a.cbSelWnd(f.loadXML(t.join("")))}else if(n.$XML(r).find("DoubleClickWnd",!0).length>0){var s=parseInt(n.$XML(r).find("DoubleClickWnd").eq(0).text(),10);l="0"===n.$XML(r).find("IsFullScreen").eq(0).text(),a.cbDoubleClickWnd&&a.cbDoubleClickWnd(s,l)}}},e.WindowDblClick=function(e){l=e,a.cbDoubleClickWnd&&a.cbDoubleClickWnd(u,l)},e.ZoomInfoCallback=function(e){var t=m.findWndIndexByIndex(u);if(-1!=t){var n=p[t];if(t=m.findDeviceIndexByIP(n.szDeviceIdentify),-1!=t){var r=d[t];r.oProtocolInc.set3DZoom(r,n,e,{success:function(e){},error:function(){}})}}},e.PluginEventHandler=function(e,t,n){re()?a.cbEvent&&a.cbEvent(n,t,""):(_("插件事件:PluginEventHandler iEventType:%s iParam1: %s, iParam2: %s",e,t,n),M==e||R==e?m.I_Stop(t):q==e?m.I_StopRecord(t):L==e&&m.I_StopVoiceTalk(),a.cbEvent&&a.cbEvent(e,t,n))},e.GetHttpInfo=function(e,t,n){_("http响应返回:http状态:%s, http数据:%s",e,t),ue.prototype.processCallback(e,t)},e.RemoteConfigInfo=function(e){a.cbRemoteConfig&&a.cbRemoteConfig(e)},e.KeyBoardEventInfo=function(e){100===parseInt(e,10)&&(l=!1,a.cbDoubleClickWnd&&a.cbDoubleClickWnd(u,l))};var _=function(){if(a.bDebugMode){var e=E(arguments);P._alert(e)}},E=function(){for(var e=arguments[0],t=1;t-1?e.substring(0,t):e},B=function(e){return"undefined"==typeof e},N=function(e){return"[object Object]"===Object.prototype.toString.call(e)},F=function(){var e="";if(f.browser().msie)e="";else for(var t=navigator.mimeTypes.length,n=0;t>n;n++)navigator.mimeTypes[n].type.toLowerCase()==a.szMimeTypes&&(e="