@newview/ui 1.1.31 → 1.1.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -1
- package/dist/newview-ui.js +123 -123
- package/dist/newview-ui.umd.cjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/newview-ui.js
CHANGED
|
@@ -212026,6 +212026,16 @@ let Instance$1 = class Instance2 extends BaseInstance {
|
|
|
212026
212026
|
console.log("销毁完成");
|
|
212027
212027
|
});
|
|
212028
212028
|
});
|
|
212029
|
+
__publicField2(this, "HideWnd", () => {
|
|
212030
|
+
if (this.vedioHandle) {
|
|
212031
|
+
this.vedioHandle.JS_HideWnd();
|
|
212032
|
+
}
|
|
212033
|
+
});
|
|
212034
|
+
__publicField2(this, "ShowWnd", () => {
|
|
212035
|
+
if (this.vedioHandle) {
|
|
212036
|
+
this.vedioHandle.JS_ShowWnd();
|
|
212037
|
+
}
|
|
212038
|
+
});
|
|
212029
212039
|
__publicField2(this, "initialsWall", () => {
|
|
212030
212040
|
if (this.configDataNew.encryptedFields == "") {
|
|
212031
212041
|
this.configDataNew.appkey = this.setEncrypt(this.configDataNew.appkey);
|
|
@@ -212047,6 +212057,58 @@ let Instance$1 = class Instance2 extends BaseInstance {
|
|
|
212047
212057
|
console.log(JSON.stringify(oData ? oData.responseMsg : ""));
|
|
212048
212058
|
});
|
|
212049
212059
|
});
|
|
212060
|
+
__publicField2(this, "appendMultipCameraInPanel", () => {
|
|
212061
|
+
if (this.props.initCameras.length == 0)
|
|
212062
|
+
return;
|
|
212063
|
+
let slist = [];
|
|
212064
|
+
this.props.initCameras.forEach((item2, i2) => {
|
|
212065
|
+
slist.push({
|
|
212066
|
+
cameraIndexCode: item2,
|
|
212067
|
+
streamMode: 0,
|
|
212068
|
+
//主码流
|
|
212069
|
+
transMode: 1,
|
|
212070
|
+
//tcp
|
|
212071
|
+
gpuMode: 0,
|
|
212072
|
+
wndId: i2 + 1,
|
|
212073
|
+
ezvizDirect: 0
|
|
212074
|
+
//直接连接萤石云
|
|
212075
|
+
});
|
|
212076
|
+
});
|
|
212077
|
+
this.vedioHandle.JS_RequestInterface({
|
|
212078
|
+
funcName: "startMultiPreviewByCameraIndexCode",
|
|
212079
|
+
argument: { list: slist }
|
|
212080
|
+
}).then((oData) => {
|
|
212081
|
+
this.initCamerasIsSuccess = true;
|
|
212082
|
+
console.log(JSON.stringify(oData ? oData.responseMsg : ""));
|
|
212083
|
+
});
|
|
212084
|
+
});
|
|
212085
|
+
__publicField2(this, "setLayout", (layout) => {
|
|
212086
|
+
this.vedioHandle.JS_RequestInterface({
|
|
212087
|
+
funcName: " setLayout",
|
|
212088
|
+
argument: {
|
|
212089
|
+
layout
|
|
212090
|
+
// 窗口布局
|
|
212091
|
+
}
|
|
212092
|
+
});
|
|
212093
|
+
});
|
|
212094
|
+
__publicField2(this, "addCameraInSelectWindow", (tkey, winId) => {
|
|
212095
|
+
this.vedioHandle.JS_RequestInterface({
|
|
212096
|
+
funcName: "startPreview",
|
|
212097
|
+
argument: {
|
|
212098
|
+
cameraIndexCode: tkey,
|
|
212099
|
+
streamMode: 0,
|
|
212100
|
+
//主码流
|
|
212101
|
+
transMode: 1,
|
|
212102
|
+
//tcp
|
|
212103
|
+
gpuMode: 0,
|
|
212104
|
+
wndId: winId,
|
|
212105
|
+
ezvizDirect: 0
|
|
212106
|
+
//直接连接萤石云
|
|
212107
|
+
}
|
|
212108
|
+
}).then(function(oData) {
|
|
212109
|
+
console.log(JSON.stringify(oData ? oData.responseMsg : ""));
|
|
212110
|
+
});
|
|
212111
|
+
});
|
|
212050
212112
|
this.props = props;
|
|
212051
212113
|
this.ctx = ctx;
|
|
212052
212114
|
this.init();
|
|
@@ -212084,16 +212146,6 @@ let Instance$1 = class Instance2 extends BaseInstance {
|
|
|
212084
212146
|
this.appendMultipCameraInPanel();
|
|
212085
212147
|
}
|
|
212086
212148
|
}
|
|
212087
|
-
HideWnd() {
|
|
212088
|
-
if (this.vedioHandle) {
|
|
212089
|
-
this.vedioHandle.JS_HideWnd();
|
|
212090
|
-
}
|
|
212091
|
-
}
|
|
212092
|
-
ShowWnd() {
|
|
212093
|
-
if (this.vedioHandle) {
|
|
212094
|
-
this.vedioHandle.JS_ShowWnd();
|
|
212095
|
-
}
|
|
212096
|
-
}
|
|
212097
212149
|
resize() {
|
|
212098
212150
|
this.setVideoCrl();
|
|
212099
212151
|
this.CameraRefreshPosition();
|
|
@@ -212202,61 +212254,9 @@ let Instance$1 = class Instance2 extends BaseInstance {
|
|
|
212202
212254
|
this.vedioHandle.JS_RequestInterface({ funcName: "stopAllPreview" });
|
|
212203
212255
|
}
|
|
212204
212256
|
}
|
|
212205
|
-
appendMultipCameraInPanel() {
|
|
212206
|
-
if (this.props.initCameras.length == 0)
|
|
212207
|
-
return;
|
|
212208
|
-
let slist = [];
|
|
212209
|
-
this.props.initCameras.forEach((item2, i2) => {
|
|
212210
|
-
slist.push({
|
|
212211
|
-
cameraIndexCode: item2,
|
|
212212
|
-
streamMode: 0,
|
|
212213
|
-
//主码流
|
|
212214
|
-
transMode: 1,
|
|
212215
|
-
//tcp
|
|
212216
|
-
gpuMode: 0,
|
|
212217
|
-
wndId: i2 + 1,
|
|
212218
|
-
ezvizDirect: 0
|
|
212219
|
-
//直接连接萤石云
|
|
212220
|
-
});
|
|
212221
|
-
});
|
|
212222
|
-
this.vedioHandle.JS_RequestInterface({
|
|
212223
|
-
funcName: "startMultiPreviewByCameraIndexCode",
|
|
212224
|
-
argument: { list: slist }
|
|
212225
|
-
}).then((oData) => {
|
|
212226
|
-
this.initCamerasIsSuccess = true;
|
|
212227
|
-
console.log(JSON.stringify(oData ? oData.responseMsg : ""));
|
|
212228
|
-
});
|
|
212229
|
-
}
|
|
212230
|
-
setLayout(layout) {
|
|
212231
|
-
this.vedioHandle.JS_RequestInterface({
|
|
212232
|
-
funcName: " setLayout",
|
|
212233
|
-
argument: {
|
|
212234
|
-
layout
|
|
212235
|
-
// 窗口布局
|
|
212236
|
-
}
|
|
212237
|
-
});
|
|
212238
|
-
}
|
|
212239
212257
|
CameraRefreshPosition() {
|
|
212240
212258
|
this.vedioHandle.JS_Resize(this.VideoCrl.width, this.VideoCrl.height);
|
|
212241
212259
|
}
|
|
212242
|
-
addCameraInSelectWindow(tkey, winId) {
|
|
212243
|
-
this.vedioHandle.JS_RequestInterface({
|
|
212244
|
-
funcName: "startPreview",
|
|
212245
|
-
argument: {
|
|
212246
|
-
cameraIndexCode: tkey,
|
|
212247
|
-
streamMode: 0,
|
|
212248
|
-
//主码流
|
|
212249
|
-
transMode: 1,
|
|
212250
|
-
//tcp
|
|
212251
|
-
gpuMode: 0,
|
|
212252
|
-
wndId: winId,
|
|
212253
|
-
ezvizDirect: 0
|
|
212254
|
-
//直接连接萤石云
|
|
212255
|
-
}
|
|
212256
|
-
}).then(function(oData) {
|
|
212257
|
-
console.log(JSON.stringify(oData ? oData.responseMsg : ""));
|
|
212258
|
-
});
|
|
212259
|
-
}
|
|
212260
212260
|
// 响应式方法 | xxx = () => {}
|
|
212261
212261
|
//#endregion 业务逻辑 - xxx END
|
|
212262
212262
|
};
|
|
@@ -212350,6 +212350,25 @@ class Instance extends BaseInstance {
|
|
|
212350
212350
|
height: 0
|
|
212351
212351
|
});
|
|
212352
212352
|
__publicField2(this, "initCamerasIsSuccess", false);
|
|
212353
|
+
__publicField2(this, "disposeHandle", () => {
|
|
212354
|
+
this.vedioHandle.JS_DestroyWnd().then(() => {
|
|
212355
|
+
console.log("销毁完成");
|
|
212356
|
+
});
|
|
212357
|
+
});
|
|
212358
|
+
__publicField2(this, "HideWnd", () => {
|
|
212359
|
+
if (this.vedioHandle) {
|
|
212360
|
+
this.vedioHandle.JS_HideWnd();
|
|
212361
|
+
}
|
|
212362
|
+
});
|
|
212363
|
+
__publicField2(this, "ShowWnd", () => {
|
|
212364
|
+
if (this.vedioHandle) {
|
|
212365
|
+
this.vedioHandle.JS_ShowWnd();
|
|
212366
|
+
}
|
|
212367
|
+
});
|
|
212368
|
+
__publicField2(this, "destroyed", () => {
|
|
212369
|
+
this.HideWnd();
|
|
212370
|
+
this.disposeHandle();
|
|
212371
|
+
});
|
|
212353
212372
|
__publicField2(this, "initialsWall", () => {
|
|
212354
212373
|
if (this.configDataNew.encryptedFields == "") {
|
|
212355
212374
|
this.configDataNew.appkey = this.setEncrypt(this.configDataNew.appkey);
|
|
@@ -212368,6 +212387,48 @@ class Instance extends BaseInstance {
|
|
|
212368
212387
|
console.log(JSON.stringify(oData ? oData.responseMsg : ""));
|
|
212369
212388
|
});
|
|
212370
212389
|
});
|
|
212390
|
+
__publicField2(this, "appendMultipCameraInPanel", () => {
|
|
212391
|
+
if (this.props.initCameras.length == 0)
|
|
212392
|
+
return;
|
|
212393
|
+
let slist = [];
|
|
212394
|
+
this.props.initCameras.forEach((item2, i2) => {
|
|
212395
|
+
slist.push({
|
|
212396
|
+
cameraIndexCode: item2,
|
|
212397
|
+
streamMode: 0,
|
|
212398
|
+
//主码流
|
|
212399
|
+
transMode: 1,
|
|
212400
|
+
//tcp
|
|
212401
|
+
gpuMode: 0,
|
|
212402
|
+
wndId: i2 + 1,
|
|
212403
|
+
ezvizDirect: 0
|
|
212404
|
+
//直接连接萤石云
|
|
212405
|
+
});
|
|
212406
|
+
});
|
|
212407
|
+
this.vedioHandle.JS_RequestInterface({
|
|
212408
|
+
funcName: "startMultiPreviewByCameraIndexCode",
|
|
212409
|
+
argument: { "list": slist }
|
|
212410
|
+
}).then(function(oData) {
|
|
212411
|
+
console.log(JSON.stringify(oData ? oData.responseMsg : ""));
|
|
212412
|
+
});
|
|
212413
|
+
});
|
|
212414
|
+
__publicField2(this, "addCameraInSelectWindow", (tkey, winId) => {
|
|
212415
|
+
this.vedioHandle.JS_RequestInterface({
|
|
212416
|
+
funcName: "startPreview",
|
|
212417
|
+
argument: {
|
|
212418
|
+
cameraIndexCode: tkey,
|
|
212419
|
+
streamMode: 0,
|
|
212420
|
+
//主码流
|
|
212421
|
+
transMode: 1,
|
|
212422
|
+
//tcp
|
|
212423
|
+
gpuMode: 0,
|
|
212424
|
+
wndId: winId,
|
|
212425
|
+
ezvizDirect: 0
|
|
212426
|
+
//直接连接萤石云
|
|
212427
|
+
}
|
|
212428
|
+
}).then(function(oData) {
|
|
212429
|
+
console.log(JSON.stringify(oData ? oData.responseMsg : ""));
|
|
212430
|
+
});
|
|
212431
|
+
});
|
|
212371
212432
|
/**
|
|
212372
212433
|
* @description: 开始回放
|
|
212373
212434
|
* @param {*}
|
|
@@ -212434,25 +212495,6 @@ class Instance extends BaseInstance {
|
|
|
212434
212495
|
this.disposeHandle();
|
|
212435
212496
|
});
|
|
212436
212497
|
}
|
|
212437
|
-
disposeHandle() {
|
|
212438
|
-
this.vedioHandle.JS_DestroyWnd().then(() => {
|
|
212439
|
-
console.log("销毁完成");
|
|
212440
|
-
});
|
|
212441
|
-
}
|
|
212442
|
-
HideWnd() {
|
|
212443
|
-
if (this.vedioHandle) {
|
|
212444
|
-
this.vedioHandle.JS_HideWnd();
|
|
212445
|
-
}
|
|
212446
|
-
}
|
|
212447
|
-
ShowWnd() {
|
|
212448
|
-
if (this.vedioHandle) {
|
|
212449
|
-
this.vedioHandle.JS_ShowWnd();
|
|
212450
|
-
}
|
|
212451
|
-
}
|
|
212452
|
-
destroyed() {
|
|
212453
|
-
this.HideWnd();
|
|
212454
|
-
this.disposeHandle();
|
|
212455
|
-
}
|
|
212456
212498
|
// 响应式方法 | xxx = () => {}
|
|
212457
212499
|
initialHandle() {
|
|
212458
212500
|
this.vedioHandle = new window["WebControl"]({
|
|
@@ -212521,48 +212563,6 @@ class Instance extends BaseInstance {
|
|
|
212521
212563
|
}
|
|
212522
212564
|
});
|
|
212523
212565
|
}
|
|
212524
|
-
appendMultipCameraInPanel() {
|
|
212525
|
-
if (this.props.initCameras.length == 0)
|
|
212526
|
-
return;
|
|
212527
|
-
let slist = [];
|
|
212528
|
-
this.props.initCameras.forEach((item2, i2) => {
|
|
212529
|
-
slist.push({
|
|
212530
|
-
cameraIndexCode: item2,
|
|
212531
|
-
streamMode: 0,
|
|
212532
|
-
//主码流
|
|
212533
|
-
transMode: 1,
|
|
212534
|
-
//tcp
|
|
212535
|
-
gpuMode: 0,
|
|
212536
|
-
wndId: i2 + 1,
|
|
212537
|
-
ezvizDirect: 0
|
|
212538
|
-
//直接连接萤石云
|
|
212539
|
-
});
|
|
212540
|
-
});
|
|
212541
|
-
this.vedioHandle.JS_RequestInterface({
|
|
212542
|
-
funcName: "startMultiPreviewByCameraIndexCode",
|
|
212543
|
-
argument: { "list": slist }
|
|
212544
|
-
}).then(function(oData) {
|
|
212545
|
-
console.log(JSON.stringify(oData ? oData.responseMsg : ""));
|
|
212546
|
-
});
|
|
212547
|
-
}
|
|
212548
|
-
addCameraInSelectWindow(tkey, winId) {
|
|
212549
|
-
this.vedioHandle.JS_RequestInterface({
|
|
212550
|
-
funcName: "startPreview",
|
|
212551
|
-
argument: {
|
|
212552
|
-
cameraIndexCode: tkey,
|
|
212553
|
-
streamMode: 0,
|
|
212554
|
-
//主码流
|
|
212555
|
-
transMode: 1,
|
|
212556
|
-
//tcp
|
|
212557
|
-
gpuMode: 0,
|
|
212558
|
-
wndId: winId,
|
|
212559
|
-
ezvizDirect: 0
|
|
212560
|
-
//直接连接萤石云
|
|
212561
|
-
}
|
|
212562
|
-
}).then(function(oData) {
|
|
212563
|
-
console.log(JSON.stringify(oData ? oData.responseMsg : ""));
|
|
212564
|
-
});
|
|
212565
|
-
}
|
|
212566
212566
|
CameraRefreshPosition() {
|
|
212567
212567
|
this.vedioHandle.JS_Resize(this.VideoCrl.width, this.VideoCrl.height);
|
|
212568
212568
|
}
|