mtxt-ui3 0.0.26 → 0.0.28

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.
@@ -6557,19 +6557,15 @@ class WebRtcMt$1 {
6557
6557
  response.json().then(res => {
6558
6558
  if (res.code === 0) {
6559
6559
  this.startPlay(plays);
6560
+ resolve(res);
6560
6561
  } else {
6561
6562
  console.log("\u62C9\u6D41\u63A5\u53E3\u8FD4\u56DE\u5931\u8D25");
6562
- setTimeout(() => {
6563
- this.rePlay();
6564
- }, 10 * 1e3);
6563
+ reject(false);
6565
6564
  }
6566
- resolve(res);
6567
6565
  });
6568
6566
  }).catch(err => {
6569
6567
  console.log("\u62C9\u6D41\u63A5\u53E3\u5931\u8D25");
6570
- setTimeout(() => {
6571
- this.rePlay();
6572
- }, 10 * 1e3);
6568
+ reject(false);
6573
6569
  });
6574
6570
  });
6575
6571
  }
@@ -6626,6 +6622,9 @@ class WebRtcMt$1 {
6626
6622
  });
6627
6623
  player.on(Events.WEBRTC_ON_CONNECTION_STATE_CHANGE, state => {
6628
6624
  console.log("webrtc:" + state);
6625
+ if (state === "disconnected" || state === "failed") {
6626
+ this.rePlay(videoElm);
6627
+ }
6629
6628
  });
6630
6629
  }
6631
6630
  // 重播
@@ -6707,7 +6706,7 @@ const VideoPlayerV2 = vue.defineComponent({
6707
6706
  props: props$7,
6708
6707
  emits: ["changeStream"],
6709
6708
  setup(_prop, _context) {
6710
- let play;
6709
+ const play = vue.ref(null);
6711
6710
  const uuid = _prop.domId;
6712
6711
  const videoFull = id => {
6713
6712
  const elm = document.getElementById(`videoPlayer_${uuid}`);
@@ -6728,19 +6727,19 @@ const VideoPlayerV2 = vue.defineComponent({
6728
6727
  };
6729
6728
  const videoInfo2 = vue.ref({});
6730
6729
  const stopPlay = () => {
6731
- if (play) {
6732
- play.stopPlay(`videoPlayer_${uuid}`);
6730
+ if (play.value) {
6731
+ play.value.stopPlay(`videoPlayer_${uuid}`);
6733
6732
  }
6734
6733
  };
6735
6734
  const init = () => {
6736
- play = null;
6735
+ play.value = null;
6737
6736
  let camera = videoInfo2.value;
6738
6737
  camera = {
6739
6738
  ...camera,
6740
6739
  ..._prop.cameraConfig
6741
6740
  };
6742
6741
  let url = camera.webrtcTemplateMerged;
6743
- play = new WebRtcMt$1({
6742
+ play.value = new WebRtcMt$1({
6744
6743
  plays: {
6745
6744
  videoElm: `videoPlayer_${uuid}`,
6746
6745
  mediaServerAddr: camera.mediaServerPo.url,
@@ -6754,6 +6753,17 @@ const VideoPlayerV2 = vue.defineComponent({
6754
6753
  }
6755
6754
  });
6756
6755
  };
6756
+ vue.watch(() => play.value.player, nval => {
6757
+ if (nval) {
6758
+ console.info("player ===> ", nval);
6759
+ } else {
6760
+ console.log("player ===> add 500!");
6761
+ stopPlay();
6762
+ getVideoDetail(_prop.camera);
6763
+ }
6764
+ }, {
6765
+ immediate: true
6766
+ });
6757
6767
  const releaseUrl = vue.ref("");
6758
6768
  const release = async () => {
6759
6769
  const res = await axios__default["default"].get(releaseUrl.value);
@@ -6547,19 +6547,15 @@ class WebRtcMt$1 {
6547
6547
  response.json().then(res => {
6548
6548
  if (res.code === 0) {
6549
6549
  this.startPlay(plays);
6550
+ resolve(res);
6550
6551
  } else {
6551
6552
  console.log("\u62C9\u6D41\u63A5\u53E3\u8FD4\u56DE\u5931\u8D25");
6552
- setTimeout(() => {
6553
- this.rePlay();
6554
- }, 10 * 1e3);
6553
+ reject(false);
6555
6554
  }
6556
- resolve(res);
6557
6555
  });
6558
6556
  }).catch(err => {
6559
6557
  console.log("\u62C9\u6D41\u63A5\u53E3\u5931\u8D25");
6560
- setTimeout(() => {
6561
- this.rePlay();
6562
- }, 10 * 1e3);
6558
+ reject(false);
6563
6559
  });
6564
6560
  });
6565
6561
  }
@@ -6616,6 +6612,9 @@ class WebRtcMt$1 {
6616
6612
  });
6617
6613
  player.on(Events.WEBRTC_ON_CONNECTION_STATE_CHANGE, state => {
6618
6614
  console.log("webrtc:" + state);
6615
+ if (state === "disconnected" || state === "failed") {
6616
+ this.rePlay(videoElm);
6617
+ }
6619
6618
  });
6620
6619
  }
6621
6620
  // 重播
@@ -6697,7 +6696,7 @@ const VideoPlayerV2 = defineComponent({
6697
6696
  props: props$7,
6698
6697
  emits: ["changeStream"],
6699
6698
  setup(_prop, _context) {
6700
- let play;
6699
+ const play = ref(null);
6701
6700
  const uuid = _prop.domId;
6702
6701
  const videoFull = id => {
6703
6702
  const elm = document.getElementById(`videoPlayer_${uuid}`);
@@ -6718,19 +6717,19 @@ const VideoPlayerV2 = defineComponent({
6718
6717
  };
6719
6718
  const videoInfo2 = ref({});
6720
6719
  const stopPlay = () => {
6721
- if (play) {
6722
- play.stopPlay(`videoPlayer_${uuid}`);
6720
+ if (play.value) {
6721
+ play.value.stopPlay(`videoPlayer_${uuid}`);
6723
6722
  }
6724
6723
  };
6725
6724
  const init = () => {
6726
- play = null;
6725
+ play.value = null;
6727
6726
  let camera = videoInfo2.value;
6728
6727
  camera = {
6729
6728
  ...camera,
6730
6729
  ..._prop.cameraConfig
6731
6730
  };
6732
6731
  let url = camera.webrtcTemplateMerged;
6733
- play = new WebRtcMt$1({
6732
+ play.value = new WebRtcMt$1({
6734
6733
  plays: {
6735
6734
  videoElm: `videoPlayer_${uuid}`,
6736
6735
  mediaServerAddr: camera.mediaServerPo.url,
@@ -6744,6 +6743,17 @@ const VideoPlayerV2 = defineComponent({
6744
6743
  }
6745
6744
  });
6746
6745
  };
6746
+ watch(() => play.value.player, nval => {
6747
+ if (nval) {
6748
+ console.info("player ===> ", nval);
6749
+ } else {
6750
+ console.log("player ===> add 500!");
6751
+ stopPlay();
6752
+ getVideoDetail(_prop.camera);
6753
+ }
6754
+ }, {
6755
+ immediate: true
6756
+ });
6747
6757
  const releaseUrl = ref("");
6748
6758
  const release = async () => {
6749
6759
  const res = await axios$2.get(releaseUrl.value);
@@ -5967,19 +5967,15 @@ class WebRtcMt {
5967
5967
  response.json().then(res => {
5968
5968
  if (res.code === 0) {
5969
5969
  this.startPlay(plays);
5970
+ resolve(res);
5970
5971
  } else {
5971
5972
  console.log("\u62C9\u6D41\u63A5\u53E3\u8FD4\u56DE\u5931\u8D25");
5972
- setTimeout(() => {
5973
- this.rePlay();
5974
- }, 10 * 1e3);
5973
+ reject(false);
5975
5974
  }
5976
- resolve(res);
5977
5975
  });
5978
5976
  }).catch(err => {
5979
5977
  console.log("\u62C9\u6D41\u63A5\u53E3\u5931\u8D25");
5980
- setTimeout(() => {
5981
- this.rePlay();
5982
- }, 10 * 1e3);
5978
+ reject(false);
5983
5979
  });
5984
5980
  });
5985
5981
  }
@@ -6036,6 +6032,9 @@ class WebRtcMt {
6036
6032
  });
6037
6033
  player.on(Events.WEBRTC_ON_CONNECTION_STATE_CHANGE, state => {
6038
6034
  console.log("webrtc:" + state);
6035
+ if (state === "disconnected" || state === "failed") {
6036
+ this.rePlay(videoElm);
6037
+ }
6039
6038
  });
6040
6039
  }
6041
6040
  // 重播
@@ -5958,19 +5958,15 @@ class WebRtcMt {
5958
5958
  response.json().then(res => {
5959
5959
  if (res.code === 0) {
5960
5960
  this.startPlay(plays);
5961
+ resolve(res);
5961
5962
  } else {
5962
5963
  console.log("\u62C9\u6D41\u63A5\u53E3\u8FD4\u56DE\u5931\u8D25");
5963
- setTimeout(() => {
5964
- this.rePlay();
5965
- }, 10 * 1e3);
5964
+ reject(false);
5966
5965
  }
5967
- resolve(res);
5968
5966
  });
5969
5967
  }).catch(err => {
5970
5968
  console.log("\u62C9\u6D41\u63A5\u53E3\u5931\u8D25");
5971
- setTimeout(() => {
5972
- this.rePlay();
5973
- }, 10 * 1e3);
5969
+ reject(false);
5974
5970
  });
5975
5971
  });
5976
5972
  }
@@ -6027,6 +6023,9 @@ class WebRtcMt {
6027
6023
  });
6028
6024
  player.on(Events.WEBRTC_ON_CONNECTION_STATE_CHANGE, state => {
6029
6025
  console.log("webrtc:" + state);
6026
+ if (state === "disconnected" || state === "failed") {
6027
+ this.rePlay(videoElm);
6028
+ }
6030
6029
  });
6031
6030
  }
6032
6031
  // 重播
package/dist/index.cjs CHANGED
@@ -21,7 +21,7 @@ var ___default = /*#__PURE__*/_interopDefaultLegacy(_);
21
21
  var dayjs__default = /*#__PURE__*/_interopDefaultLegacy(dayjs);
22
22
  var zhCN__default = /*#__PURE__*/_interopDefaultLegacy(zhCN);
23
23
 
24
- var version = "0.0.25";
24
+ var version = "0.0.27";
25
25
 
26
26
  const setRem = opt => {
27
27
  const fontSize = opt.fontSize || 14;
@@ -6573,19 +6573,15 @@ class WebRtcMt$1 {
6573
6573
  response.json().then(res => {
6574
6574
  if (res.code === 0) {
6575
6575
  this.startPlay(plays);
6576
+ resolve(res);
6576
6577
  } else {
6577
6578
  console.log("\u62C9\u6D41\u63A5\u53E3\u8FD4\u56DE\u5931\u8D25");
6578
- setTimeout(() => {
6579
- this.rePlay();
6580
- }, 10 * 1e3);
6579
+ reject(false);
6581
6580
  }
6582
- resolve(res);
6583
6581
  });
6584
6582
  }).catch(err => {
6585
6583
  console.log("\u62C9\u6D41\u63A5\u53E3\u5931\u8D25");
6586
- setTimeout(() => {
6587
- this.rePlay();
6588
- }, 10 * 1e3);
6584
+ reject(false);
6589
6585
  });
6590
6586
  });
6591
6587
  }
@@ -6642,6 +6638,9 @@ class WebRtcMt$1 {
6642
6638
  });
6643
6639
  player.on(Events.WEBRTC_ON_CONNECTION_STATE_CHANGE, state => {
6644
6640
  console.log("webrtc:" + state);
6641
+ if (state === "disconnected" || state === "failed") {
6642
+ this.rePlay(videoElm);
6643
+ }
6645
6644
  });
6646
6645
  }
6647
6646
  // 重播
@@ -7238,7 +7237,7 @@ const VideoPlayerV2 = vue.defineComponent({
7238
7237
  props: props$7,
7239
7238
  emits: ["changeStream"],
7240
7239
  setup(_prop, _context) {
7241
- let play;
7240
+ const play = vue.ref(null);
7242
7241
  const uuid = _prop.domId;
7243
7242
  const videoFull = id => {
7244
7243
  const elm = document.getElementById(`videoPlayer_${uuid}`);
@@ -7259,19 +7258,19 @@ const VideoPlayerV2 = vue.defineComponent({
7259
7258
  };
7260
7259
  const videoInfo2 = vue.ref({});
7261
7260
  const stopPlay = () => {
7262
- if (play) {
7263
- play.stopPlay(`videoPlayer_${uuid}`);
7261
+ if (play.value) {
7262
+ play.value.stopPlay(`videoPlayer_${uuid}`);
7264
7263
  }
7265
7264
  };
7266
7265
  const init = () => {
7267
- play = null;
7266
+ play.value = null;
7268
7267
  let camera = videoInfo2.value;
7269
7268
  camera = {
7270
7269
  ...camera,
7271
7270
  ..._prop.cameraConfig
7272
7271
  };
7273
7272
  let url = camera.webrtcTemplateMerged;
7274
- play = new WebRtcMt$1({
7273
+ play.value = new WebRtcMt$1({
7275
7274
  plays: {
7276
7275
  videoElm: `videoPlayer_${uuid}`,
7277
7276
  mediaServerAddr: camera.mediaServerPo.url,
@@ -7285,6 +7284,17 @@ const VideoPlayerV2 = vue.defineComponent({
7285
7284
  }
7286
7285
  });
7287
7286
  };
7287
+ vue.watch(() => play.value.player, nval => {
7288
+ if (nval) {
7289
+ console.info("player ===> ", nval);
7290
+ } else {
7291
+ console.log("player ===> add 500!");
7292
+ stopPlay();
7293
+ getVideoDetail(_prop.camera);
7294
+ }
7295
+ }, {
7296
+ immediate: true
7297
+ });
7288
7298
  const releaseUrl = vue.ref("");
7289
7299
  const release = async () => {
7290
7300
  const res = await axios__default["default"].get(releaseUrl.value);
package/dist/index.d.ts CHANGED
@@ -7,7 +7,7 @@ import { MaybeRef, MaybeComputedRef } from '@vueuse/core';
7
7
  import { Key } from 'ant-design-vue/lib/table/interface';
8
8
  import * as vue_jsx_runtime from 'vue/jsx-runtime';
9
9
 
10
- var version = "0.0.25";
10
+ var version = "0.0.27";
11
11
 
12
12
  /**
13
13
  *
package/dist/index.js CHANGED
@@ -9,7 +9,7 @@ import { SearchOutlined, CaretUpOutlined, CaretRightOutlined, CaretDownOutlined,
9
9
  import 'ant-design-vue/dist/antd.less';
10
10
  import zhCN from 'dayjs/locale/zh-cn';
11
11
 
12
- var version = "0.0.25";
12
+ var version = "0.0.27";
13
13
 
14
14
  const setRem = opt => {
15
15
  const fontSize = opt.fontSize || 14;
@@ -6561,19 +6561,15 @@ class WebRtcMt$1 {
6561
6561
  response.json().then(res => {
6562
6562
  if (res.code === 0) {
6563
6563
  this.startPlay(plays);
6564
+ resolve(res);
6564
6565
  } else {
6565
6566
  console.log("\u62C9\u6D41\u63A5\u53E3\u8FD4\u56DE\u5931\u8D25");
6566
- setTimeout(() => {
6567
- this.rePlay();
6568
- }, 10 * 1e3);
6567
+ reject(false);
6569
6568
  }
6570
- resolve(res);
6571
6569
  });
6572
6570
  }).catch(err => {
6573
6571
  console.log("\u62C9\u6D41\u63A5\u53E3\u5931\u8D25");
6574
- setTimeout(() => {
6575
- this.rePlay();
6576
- }, 10 * 1e3);
6572
+ reject(false);
6577
6573
  });
6578
6574
  });
6579
6575
  }
@@ -6630,6 +6626,9 @@ class WebRtcMt$1 {
6630
6626
  });
6631
6627
  player.on(Events.WEBRTC_ON_CONNECTION_STATE_CHANGE, state => {
6632
6628
  console.log("webrtc:" + state);
6629
+ if (state === "disconnected" || state === "failed") {
6630
+ this.rePlay(videoElm);
6631
+ }
6633
6632
  });
6634
6633
  }
6635
6634
  // 重播
@@ -7226,7 +7225,7 @@ const VideoPlayerV2 = defineComponent({
7226
7225
  props: props$7,
7227
7226
  emits: ["changeStream"],
7228
7227
  setup(_prop, _context) {
7229
- let play;
7228
+ const play = ref(null);
7230
7229
  const uuid = _prop.domId;
7231
7230
  const videoFull = id => {
7232
7231
  const elm = document.getElementById(`videoPlayer_${uuid}`);
@@ -7247,19 +7246,19 @@ const VideoPlayerV2 = defineComponent({
7247
7246
  };
7248
7247
  const videoInfo2 = ref({});
7249
7248
  const stopPlay = () => {
7250
- if (play) {
7251
- play.stopPlay(`videoPlayer_${uuid}`);
7249
+ if (play.value) {
7250
+ play.value.stopPlay(`videoPlayer_${uuid}`);
7252
7251
  }
7253
7252
  };
7254
7253
  const init = () => {
7255
- play = null;
7254
+ play.value = null;
7256
7255
  let camera = videoInfo2.value;
7257
7256
  camera = {
7258
7257
  ...camera,
7259
7258
  ..._prop.cameraConfig
7260
7259
  };
7261
7260
  let url = camera.webrtcTemplateMerged;
7262
- play = new WebRtcMt$1({
7261
+ play.value = new WebRtcMt$1({
7263
7262
  plays: {
7264
7263
  videoElm: `videoPlayer_${uuid}`,
7265
7264
  mediaServerAddr: camera.mediaServerPo.url,
@@ -7273,6 +7272,17 @@ const VideoPlayerV2 = defineComponent({
7273
7272
  }
7274
7273
  });
7275
7274
  };
7275
+ watch(() => play.value.player, nval => {
7276
+ if (nval) {
7277
+ console.info("player ===> ", nval);
7278
+ } else {
7279
+ console.log("player ===> add 500!");
7280
+ stopPlay();
7281
+ getVideoDetail(_prop.camera);
7282
+ }
7283
+ }, {
7284
+ immediate: true
7285
+ });
7276
7286
  const releaseUrl = ref("");
7277
7287
  const release = async () => {
7278
7288
  const res = await axios$2.get(releaseUrl.value);
@@ -5782,19 +5782,15 @@ class WebRtcMt$1 {
5782
5782
  response.json().then(res => {
5783
5783
  if (res.code === 0) {
5784
5784
  this.startPlay(plays);
5785
+ resolve(res);
5785
5786
  } else {
5786
5787
  console.log("\u62C9\u6D41\u63A5\u53E3\u8FD4\u56DE\u5931\u8D25");
5787
- setTimeout(() => {
5788
- this.rePlay();
5789
- }, 10 * 1e3);
5788
+ reject(false);
5790
5789
  }
5791
- resolve(res);
5792
5790
  });
5793
5791
  }).catch(err => {
5794
5792
  console.log("\u62C9\u6D41\u63A5\u53E3\u5931\u8D25");
5795
- setTimeout(() => {
5796
- this.rePlay();
5797
- }, 10 * 1e3);
5793
+ reject(false);
5798
5794
  });
5799
5795
  });
5800
5796
  }
@@ -5851,6 +5847,9 @@ class WebRtcMt$1 {
5851
5847
  });
5852
5848
  player.on(Events.WEBRTC_ON_CONNECTION_STATE_CHANGE, state => {
5853
5849
  console.log("webrtc:" + state);
5850
+ if (state === "disconnected" || state === "failed") {
5851
+ this.rePlay(videoElm);
5852
+ }
5854
5853
  });
5855
5854
  }
5856
5855
  // 重播
@@ -5949,7 +5948,7 @@ const VideoPlayerV2 = vue.defineComponent({
5949
5948
  props: props$1,
5950
5949
  emits: ["changeStream"],
5951
5950
  setup(_prop, _context) {
5952
- let play;
5951
+ const play = vue.ref(null);
5953
5952
  const uuid = _prop.domId;
5954
5953
  const videoFull = id => {
5955
5954
  const elm = document.getElementById(`videoPlayer_${uuid}`);
@@ -5970,19 +5969,19 @@ const VideoPlayerV2 = vue.defineComponent({
5970
5969
  };
5971
5970
  const videoInfo2 = vue.ref({});
5972
5971
  const stopPlay = () => {
5973
- if (play) {
5974
- play.stopPlay(`videoPlayer_${uuid}`);
5972
+ if (play.value) {
5973
+ play.value.stopPlay(`videoPlayer_${uuid}`);
5975
5974
  }
5976
5975
  };
5977
5976
  const init = () => {
5978
- play = null;
5977
+ play.value = null;
5979
5978
  let camera = videoInfo2.value;
5980
5979
  camera = {
5981
5980
  ...camera,
5982
5981
  ..._prop.cameraConfig
5983
5982
  };
5984
5983
  let url = camera.webrtcTemplateMerged;
5985
- play = new WebRtcMt$1({
5984
+ play.value = new WebRtcMt$1({
5986
5985
  plays: {
5987
5986
  videoElm: `videoPlayer_${uuid}`,
5988
5987
  mediaServerAddr: camera.mediaServerPo.url,
@@ -5996,6 +5995,17 @@ const VideoPlayerV2 = vue.defineComponent({
5996
5995
  }
5997
5996
  });
5998
5997
  };
5998
+ vue.watch(() => play.value.player, nval => {
5999
+ if (nval) {
6000
+ console.info("player ===> ", nval);
6001
+ } else {
6002
+ console.log("player ===> add 500!");
6003
+ stopPlay();
6004
+ getVideoDetail(_prop.camera);
6005
+ }
6006
+ }, {
6007
+ immediate: true
6008
+ });
5999
6009
  const releaseUrl = vue.ref("");
6000
6010
  const release = async () => {
6001
6011
  const res = await axios__default["default"].get(releaseUrl.value);
@@ -5774,19 +5774,15 @@ class WebRtcMt$1 {
5774
5774
  response.json().then(res => {
5775
5775
  if (res.code === 0) {
5776
5776
  this.startPlay(plays);
5777
+ resolve(res);
5777
5778
  } else {
5778
5779
  console.log("\u62C9\u6D41\u63A5\u53E3\u8FD4\u56DE\u5931\u8D25");
5779
- setTimeout(() => {
5780
- this.rePlay();
5781
- }, 10 * 1e3);
5780
+ reject(false);
5782
5781
  }
5783
- resolve(res);
5784
5782
  });
5785
5783
  }).catch(err => {
5786
5784
  console.log("\u62C9\u6D41\u63A5\u53E3\u5931\u8D25");
5787
- setTimeout(() => {
5788
- this.rePlay();
5789
- }, 10 * 1e3);
5785
+ reject(false);
5790
5786
  });
5791
5787
  });
5792
5788
  }
@@ -5843,6 +5839,9 @@ class WebRtcMt$1 {
5843
5839
  });
5844
5840
  player.on(Events.WEBRTC_ON_CONNECTION_STATE_CHANGE, state => {
5845
5841
  console.log("webrtc:" + state);
5842
+ if (state === "disconnected" || state === "failed") {
5843
+ this.rePlay(videoElm);
5844
+ }
5846
5845
  });
5847
5846
  }
5848
5847
  // 重播
@@ -5941,7 +5940,7 @@ const VideoPlayerV2 = defineComponent({
5941
5940
  props: props$1,
5942
5941
  emits: ["changeStream"],
5943
5942
  setup(_prop, _context) {
5944
- let play;
5943
+ const play = ref(null);
5945
5944
  const uuid = _prop.domId;
5946
5945
  const videoFull = id => {
5947
5946
  const elm = document.getElementById(`videoPlayer_${uuid}`);
@@ -5962,19 +5961,19 @@ const VideoPlayerV2 = defineComponent({
5962
5961
  };
5963
5962
  const videoInfo2 = ref({});
5964
5963
  const stopPlay = () => {
5965
- if (play) {
5966
- play.stopPlay(`videoPlayer_${uuid}`);
5964
+ if (play.value) {
5965
+ play.value.stopPlay(`videoPlayer_${uuid}`);
5967
5966
  }
5968
5967
  };
5969
5968
  const init = () => {
5970
- play = null;
5969
+ play.value = null;
5971
5970
  let camera = videoInfo2.value;
5972
5971
  camera = {
5973
5972
  ...camera,
5974
5973
  ..._prop.cameraConfig
5975
5974
  };
5976
5975
  let url = camera.webrtcTemplateMerged;
5977
- play = new WebRtcMt$1({
5976
+ play.value = new WebRtcMt$1({
5978
5977
  plays: {
5979
5978
  videoElm: `videoPlayer_${uuid}`,
5980
5979
  mediaServerAddr: camera.mediaServerPo.url,
@@ -5988,6 +5987,17 @@ const VideoPlayerV2 = defineComponent({
5988
5987
  }
5989
5988
  });
5990
5989
  };
5990
+ watch(() => play.value.player, nval => {
5991
+ if (nval) {
5992
+ console.info("player ===> ", nval);
5993
+ } else {
5994
+ console.log("player ===> add 500!");
5995
+ stopPlay();
5996
+ getVideoDetail(_prop.camera);
5997
+ }
5998
+ }, {
5999
+ immediate: true
6000
+ });
5991
6001
  const releaseUrl = ref("");
5992
6002
  const release = async () => {
5993
6003
  const res = await axios$2.get(releaseUrl.value);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mtxt-ui3",
3
- "version": "0.0.26",
3
+ "version": "0.0.28",
4
4
  "description": "系统运营组件库",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",