Commit c7ed70c8 by niuxiaolin

latest

parent 614f340f
......@@ -4,7 +4,7 @@
"scripts": {
"ng": "ng",
"start": "ng serve --proxy--config proxy.json",
"build": "ng build && npm run remove-to && npm run create && npm run copy-to",
"build": "ng build --prod --build-optimizer && npm run remove-to && npm run create && npm run copy-to",
"remove-to": "rd /s /q D:\\projects\\supervise\\src\\main\\resources\\static",
"create": "mkdir D:\\projects\\supervise\\src\\main\\resources\\static",
"copy-to": " powershell -command \" Copy-Item D:\\projects\\map\\dist\\map\\* -Destination D:\\projects\\supervise\\src\\main\\resources\\static\\ -Recurse \"",
......
......@@ -29,6 +29,6 @@
}
#playWnd{
width:500px;
width:1000px;
height: 500px;
}
\ No newline at end of file
......@@ -3,6 +3,8 @@ import { DynamicScriptLoaderService } from '../dynamic-script.service';
declare var WebControl;
declare var JSEncrypt;
declare var $;
const width=1500;
const height =700;
@Component({
selector: 'app-video',
templateUrl: './video.component.html',
......@@ -171,7 +173,7 @@ export class VideoComponent implements OnInit {
// 监听resize事件,使插件窗口尺寸跟随DIV窗口变化
$(window).resize(function () {
if (oWebControl != null) {
oWebControl.JS_Resize(1000, 600);
oWebControl.JS_Resize(1500, 700);
setWndCover();
}
});
......@@ -179,7 +181,7 @@ export class VideoComponent implements OnInit {
// 监听滚动条scroll事件,使插件窗口跟随浏览器滚动而移动
$(window).scroll(function () {
if (oWebControl != null) {
oWebControl.JS_Resize(1000, 600);
oWebControl.JS_Resize(1500, 700);
setWndCover();
}
});
......@@ -196,23 +198,23 @@ function setWndCover() {
var iCoverRight = (oDivRect.right - iWidth > 0) ? Math.round(oDivRect.right - iWidth) : 0;
var iCoverBottom = (oDivRect.bottom - iHeight > 0) ? Math.round(oDivRect.bottom - iHeight) : 0;
iCoverLeft = (iCoverLeft > 1000) ? 1000 : iCoverLeft;
iCoverTop = (iCoverTop > 600) ? 600 : iCoverTop;
iCoverRight = (iCoverRight > 1000) ? 1000 : iCoverRight;
iCoverBottom = (iCoverBottom > 600) ? 600 : iCoverBottom;
iCoverLeft = (iCoverLeft > 1500) ? 1500 : iCoverLeft;
iCoverTop = (iCoverTop > 700) ? 700 : iCoverTop;
iCoverRight = (iCoverRight > 1500) ? 1500 : iCoverRight;
iCoverBottom = (iCoverBottom > 700) ? 700 : iCoverBottom;
oWebControl.JS_RepairPartWindow(0, 0, 1001, 600); // 多1个像素点防止还原后边界缺失一个像素条
oWebControl.JS_RepairPartWindow(0, 0, 1001, 700); // 多1个像素点防止还原后边界缺失一个像素条
if (iCoverLeft != 0) {
oWebControl.JS_CuttingPartWindow(0, 0, iCoverLeft, 600);
oWebControl.JS_CuttingPartWindow(0, 0, iCoverLeft, 700);
}
if (iCoverTop != 0) {
oWebControl.JS_CuttingPartWindow(0, 0, 1001, iCoverTop); // 多剪掉一个像素条,防止出现剪掉一部分窗口后出现一个像素条
}
if (iCoverRight != 0) {
oWebControl.JS_CuttingPartWindow(1000 - iCoverRight, 0, iCoverRight, 600);
oWebControl.JS_CuttingPartWindow(1500 - iCoverRight, 0, iCoverRight, 700);
}
if (iCoverBottom != 0) {
oWebControl.JS_CuttingPartWindow(0, 600 - iCoverBottom, 1000, iCoverBottom);
oWebControl.JS_CuttingPartWindow(0, 700 - iCoverBottom, 1500, iCoverBottom);
}
}
let pubKey = null;
......@@ -249,7 +251,7 @@ oWebControl.JS_RepairPartWindow(0, 0, 1001, 600); // 多1个像素点防止
var port = 443; //综合安防管理平台端口,若启用HTTPS协议,默认443
var snapDir = "D:\\SnapDir"; //抓图存储路径
var videoDir = "D:\\VideoDir"; //紧急录像或录像剪辑存储路径
var layout = "4x4"; //playMode指定模式的布局
var layout = "4x6"; //playMode指定模式的布局
var enableHTTPS = 1; //是否启用HTTPS协议与综合安防管理平台交互,是为1,否为0
var encryptedFields = 'secret'; //加密字段,默认加密领域为secret
var showToolbar = 1; //是否显示工具栏,0-不显示,非0-显示
......@@ -294,7 +296,7 @@ oWebControl.JS_RepairPartWindow(0, 0, 1001, 600); // 多1个像素点防止
// wndId:wndId //可指定播放窗口
// })
// })
oWebControl.JS_Resize(900, 600); // 初始化后resize一次,规避firefox下首次显示窗口后插件窗口未与DIV窗口重合问题
oWebControl.JS_Resize(1500, 700); // 初始化后resize一次,规避firefox下首次显示窗口后插件窗口未与DIV窗口重合问题
});
});
}
......@@ -311,7 +313,7 @@ oWebControl.JS_RepairPartWindow(0, 0, 1001, 600); // 多1个像素点防止
cbIntegrationCallBack: function (msg) { console.log(msg) }
});
oWebControl.JS_CreateWnd("playWnd", 900, 600).then(function () { //JS_CreateWnd创建视频播放窗口,宽高可设定
oWebControl.JS_CreateWnd("playWnd", 900, 700).then(function () { //JS_CreateWnd创建视频播放窗口,宽高可设定
init(oWebControl); // 创建播放实例成功后初始化
});
}, function () { // 启动插件服务失败
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment