bonus-ui/public/monitor/iframe.html

109 lines
3.3 KiB
HTML
Raw Permalink Normal View History

2025-06-26 16:20:38 +08:00
<!doctype html>
<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" />
</head>
<style type="text/css">
html, body {
margin: 0;
padding: 0;
border: 0;
overflow: hidden;
position: relative;
2025-06-26 16:20:38 +08:00
}
.plugin {
2025-07-09 15:17:23 +08:00
width: 1300px;
height: 680px;
2025-06-26 16:20:38 +08:00
}
.vpopmenu{
position: absolute;
background: #666;
color: #fff;
top:0;
left: 0;
width: 100px;
height: 40px;
text-align: center;
line-height: 40px;
display: none;
}
2025-06-26 16:20:38 +08:00
</style>
<body>
<div id="divPlugin" class="plugin"></div>
<div id="r_menu" class="vpopmenu">
<!-- <div id="stop_realPlay" onclick="clickStopRealPlay();">停止预览</div> -->
<div id="fullScreen" onclick="clickFullScreen();">全屏</div>
</div>
2025-06-26 16:20:38 +08:00
</body>
2025-06-27 16:48:42 +08:00
<script src="./codebase/jquery-3.6.4.min.js"></script>
2025-06-26 16:20:38 +08:00
<script src="./codebase/encryption/AES.js"></script>
<script src="./codebase/encryption/cryptico.min.js"></script>
<script src="./codebase/encryption/crypto-3.1.2.min.js"></script>
<script src="./codebase/jsPlugin-1.2.0.min.js"></script>
<script src="./codebase/webVideoCtrl.js"></script>
<script>
2025-07-08 15:56:21 +08:00
// var urlParams = new URLSearchParams(window.location.search);
// var type = urlParams.get('type');
// console.log(type)
$(function () {
bindMenu();
const menu = document.getElementById("r_menu");
function bindMenu(){
//给所有class=plugin的div都加上右键菜单
let $BIPanel = $("div[class='plugin']").contextmenu(function(ev) {
let oEvent = ev || event;
//自定义的菜单显示
menu.style.display = "block";
//让自定义菜单随鼠标的箭头位置移动
menu.style.left = oEvent.clientX + "px";
menu.style.top = oEvent.clientY + "px";
//return false阻止系统自带的菜单
//return false必须写在最后否则自定义的右键菜单也不会出现
return false;
});
}
//实现点击document自定义菜单消失
document.onclick = function() {
menu.style.display = "none";
}
});
function clickFullScreen(){
WebVideoCtrl.I_FullScreen(true);
}
2025-07-08 15:56:21 +08:00
// $(function () {
// var height = '350';
// var width = $("body").width();
// if(type=="1"){
// width = $("body").width() * 0.5;
// height = '350';
// }
// if(type=="2"){
// width = $("body").width() * 0.5;
// height = '600';
// }
// // <20><>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
// WebVideoCtrl.I_InitPlugin(width,height, {
// bWndFull: true,//<2F>Ƿ<EFBFBD>֧<EFBFBD>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD><EFBFBD>˫<EFBFBD><CBAB>ȫ<EFBFBD><C8AB><EFBFBD><EFBFBD>Ĭ<EFBFBD><C4AC>֧<EFBFBD><D6A7> true:֧<><D6A7> false:<3A><>֧<EFBFBD><D6A7>
// iWndowType: 1,
// cbInitPluginComplete: function () {
// WebVideoCtrl.I_InsertOBJECTPlugin("divPlugin");
// },
// cbSelWnd: function (xmlDoc) {
// let g_iWndIndex = parseInt($(xmlDoc).find("SelectWnd").eq(0).text(), 10);
// var szInfo = "当前选择的窗口编号:" + g_iWndIndex;
// console.log(szInfo);
// },
// });
2025-06-26 16:20:38 +08:00
2025-07-08 15:56:21 +08:00
// });
2025-06-26 16:20:38 +08:00
</script>
</html>