@newview/ui 1.1.31 → 1.1.32

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.
@@ -212047,6 +212047,58 @@ let Instance$1 = class Instance2 extends BaseInstance {
212047
212047
  console.log(JSON.stringify(oData ? oData.responseMsg : ""));
212048
212048
  });
212049
212049
  });
212050
+ __publicField2(this, "appendMultipCameraInPanel", () => {
212051
+ if (this.props.initCameras.length == 0)
212052
+ return;
212053
+ let slist = [];
212054
+ this.props.initCameras.forEach((item2, i2) => {
212055
+ slist.push({
212056
+ cameraIndexCode: item2,
212057
+ streamMode: 0,
212058
+ //主码流
212059
+ transMode: 1,
212060
+ //tcp
212061
+ gpuMode: 0,
212062
+ wndId: i2 + 1,
212063
+ ezvizDirect: 0
212064
+ //直接连接萤石云
212065
+ });
212066
+ });
212067
+ this.vedioHandle.JS_RequestInterface({
212068
+ funcName: "startMultiPreviewByCameraIndexCode",
212069
+ argument: { list: slist }
212070
+ }).then((oData) => {
212071
+ this.initCamerasIsSuccess = true;
212072
+ console.log(JSON.stringify(oData ? oData.responseMsg : ""));
212073
+ });
212074
+ });
212075
+ __publicField2(this, "setLayout", (layout) => {
212076
+ this.vedioHandle.JS_RequestInterface({
212077
+ funcName: " setLayout",
212078
+ argument: {
212079
+ layout
212080
+ // 窗口布局
212081
+ }
212082
+ });
212083
+ });
212084
+ __publicField2(this, "addCameraInSelectWindow", (tkey, winId) => {
212085
+ this.vedioHandle.JS_RequestInterface({
212086
+ funcName: "startPreview",
212087
+ argument: {
212088
+ cameraIndexCode: tkey,
212089
+ streamMode: 0,
212090
+ //主码流
212091
+ transMode: 1,
212092
+ //tcp
212093
+ gpuMode: 0,
212094
+ wndId: winId,
212095
+ ezvizDirect: 0
212096
+ //直接连接萤石云
212097
+ }
212098
+ }).then(function(oData) {
212099
+ console.log(JSON.stringify(oData ? oData.responseMsg : ""));
212100
+ });
212101
+ });
212050
212102
  this.props = props;
212051
212103
  this.ctx = ctx;
212052
212104
  this.init();
@@ -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,11 @@ 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
+ });
212353
212358
  __publicField2(this, "initialsWall", () => {
212354
212359
  if (this.configDataNew.encryptedFields == "") {
212355
212360
  this.configDataNew.appkey = this.setEncrypt(this.configDataNew.appkey);
@@ -212368,6 +212373,48 @@ class Instance extends BaseInstance {
212368
212373
  console.log(JSON.stringify(oData ? oData.responseMsg : ""));
212369
212374
  });
212370
212375
  });
212376
+ __publicField2(this, "appendMultipCameraInPanel", () => {
212377
+ if (this.props.initCameras.length == 0)
212378
+ return;
212379
+ let slist = [];
212380
+ this.props.initCameras.forEach((item2, i2) => {
212381
+ slist.push({
212382
+ cameraIndexCode: item2,
212383
+ streamMode: 0,
212384
+ //主码流
212385
+ transMode: 1,
212386
+ //tcp
212387
+ gpuMode: 0,
212388
+ wndId: i2 + 1,
212389
+ ezvizDirect: 0
212390
+ //直接连接萤石云
212391
+ });
212392
+ });
212393
+ this.vedioHandle.JS_RequestInterface({
212394
+ funcName: "startMultiPreviewByCameraIndexCode",
212395
+ argument: { "list": slist }
212396
+ }).then(function(oData) {
212397
+ console.log(JSON.stringify(oData ? oData.responseMsg : ""));
212398
+ });
212399
+ });
212400
+ __publicField2(this, "addCameraInSelectWindow", (tkey, winId) => {
212401
+ this.vedioHandle.JS_RequestInterface({
212402
+ funcName: "startPreview",
212403
+ argument: {
212404
+ cameraIndexCode: tkey,
212405
+ streamMode: 0,
212406
+ //主码流
212407
+ transMode: 1,
212408
+ //tcp
212409
+ gpuMode: 0,
212410
+ wndId: winId,
212411
+ ezvizDirect: 0
212412
+ //直接连接萤石云
212413
+ }
212414
+ }).then(function(oData) {
212415
+ console.log(JSON.stringify(oData ? oData.responseMsg : ""));
212416
+ });
212417
+ });
212371
212418
  /**
212372
212419
  * @description: 开始回放
212373
212420
  * @param {*}
@@ -212434,11 +212481,6 @@ class Instance extends BaseInstance {
212434
212481
  this.disposeHandle();
212435
212482
  });
212436
212483
  }
212437
- disposeHandle() {
212438
- this.vedioHandle.JS_DestroyWnd().then(() => {
212439
- console.log("销毁完成");
212440
- });
212441
- }
212442
212484
  HideWnd() {
212443
212485
  if (this.vedioHandle) {
212444
212486
  this.vedioHandle.JS_HideWnd();
@@ -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
  }