Files
SIPAIIS_WMS_JSSW/WebRoot/jsp/work/scadapic/processVideoDetail.jsp

55 lines
2.1 KiB
Plaintext
Raw Permalink Normal View History

2026-01-16 14:13:44 +08:00
<%@ page language="java" pageEncoding="UTF-8"%>
<!doctype html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Cache-Control" content="no-cache, must-revalidate" />
<meta http-equiv="Expires" content="0" />
<%String contextPath = request.getContextPath();%>
<script type="text/javascript" src="<%=contextPath%>/node_modules/jquery/dist/jquery.min.js" charset="utf-8"></script>
<script type="text/javascript">
$(function() {
/**
if (-1 == WebVideoCtrl.I_CheckPluginInstall()) {
var isDownload = confirm("您还未安装过插件是否下载WebComponents.exe进行安装");
if(isDownload){
location.href = 'http://' + location.host + '/UploadFile/PE_APP/plugins/WebComponents.exe';
}
return;
}
*/
var processSectionId = parent.document.querySelector('#tab3').dataset.processsectionid;
getCamerasByProcessSectionId(processSectionId);
//getCamerasByProcessSectionId('d9016deabd2749be8b381159f29fc0dc');
});
function getCamerasByProcessSectionId(processSectionId) {
$.post(ext.contextPath +"/work/camera/getCamerasByProcessSectionId.do", {processSectionId: processSectionId}, function(data) {
console.log('摄像头数据:' + data);
var res = JSON.parse(data);
for(var i = 0, len = res.length; i < len; i++) {
var videoIframe = document.createElement('iframe');
videoIframe.id = 'videoIframe-' + res[i].id;
videoIframe.style.cssText = 'width:510px;height:400px;border:0;margin:10px;position:absolute;top:0;left:' + i * 510 + 'px;z-index:9999;';
switch(res[i].type){
case 'dahua':
videoIframe.src = ext.contextPath +"/work/scadaPic/showLiveSurveillanceVideo_Dahua.do?id=" + res[i].id;
break;
default:
videoIframe.src = ext.contextPath +"/work/scadaPic/showLiveSurveillanceVideo.do?id=" + res[i].id;
}
document.querySelector('#camerasFrame').appendChild(videoIframe);
}
});
}
</script>
</head>
<body>
</body>
</html>