inl-ui 0.1.146 → 0.1.148

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.
@@ -17034,6 +17034,7 @@ class WebRtcMt {
17034
17034
  this.stopPlay();
17035
17035
  if (dom) {
17036
17036
  setTimeout(() => {
17037
+ console.log("\u91CD\u65B0\u62C9\u6D41");
17037
17038
  this.init(this.opt);
17038
17039
  }, 3e3);
17039
17040
  }
@@ -17147,6 +17148,7 @@ const VideoPlayBack = vue.defineComponent({
17147
17148
  const init = async () => {
17148
17149
  isLoading.value = true;
17149
17150
  isError.value = false;
17151
+ console.log("init video");
17150
17152
  stopStream();
17151
17153
  const params = {
17152
17154
  buzKey: "playback_" + props.cameraId,
@@ -17181,11 +17183,13 @@ const VideoPlayBack = vue.defineComponent({
17181
17183
  secret
17182
17184
  };
17183
17185
  if (!player.value) {
17186
+ console.log("new WebRtcMt");
17184
17187
  player.value = new WebRtcMt({
17185
17188
  plays,
17186
17189
  playback: true
17187
17190
  });
17188
17191
  } else {
17192
+ console.log("createVideo");
17189
17193
  player.value.p_player = player.value.createVideo(plays);
17190
17194
  }
17191
17195
  player.value.p_player.then(async () => {
@@ -17211,9 +17215,6 @@ const VideoPlayBack = vue.defineComponent({
17211
17215
  console.log(e);
17212
17216
  isLoading.value = false;
17213
17217
  isError.value = true;
17214
- setTimeout(() => {
17215
- init();
17216
- }, 5e3);
17217
17218
  });
17218
17219
  }).catch(e => {
17219
17220
  console.log(e);
@@ -17240,8 +17241,9 @@ const VideoPlayBack = vue.defineComponent({
17240
17241
  };
17241
17242
  const stopStream = (video = dom.value) => {
17242
17243
  timer && clearInterval(timer);
17243
- player.value?.stopPlay(video);
17244
17244
  player.value?.delStream(video);
17245
+ player.value?.stopPlay(video);
17246
+ console.log("stopStream");
17245
17247
  player.value = null;
17246
17248
  };
17247
17249
  const timeChange = () => {
@@ -17265,7 +17267,9 @@ const VideoPlayBack = vue.defineComponent({
17265
17267
  init();
17266
17268
  }
17267
17269
  });
17268
- vue.onBeforeUnmount(stopStream);
17270
+ vue.onBeforeUnmount(() => {
17271
+ stopStream();
17272
+ });
17269
17273
  return () => vue.createVNode("div", {
17270
17274
  "ref": cpnRef,
17271
17275
  "class": "video-play-back-cpn"
@@ -17005,6 +17005,7 @@ class WebRtcMt {
17005
17005
  this.stopPlay();
17006
17006
  if (dom) {
17007
17007
  setTimeout(() => {
17008
+ console.log("\u91CD\u65B0\u62C9\u6D41");
17008
17009
  this.init(this.opt);
17009
17010
  }, 3e3);
17010
17011
  }
@@ -17118,6 +17119,7 @@ const VideoPlayBack = defineComponent({
17118
17119
  const init = async () => {
17119
17120
  isLoading.value = true;
17120
17121
  isError.value = false;
17122
+ console.log("init video");
17121
17123
  stopStream();
17122
17124
  const params = {
17123
17125
  buzKey: "playback_" + props.cameraId,
@@ -17152,11 +17154,13 @@ const VideoPlayBack = defineComponent({
17152
17154
  secret
17153
17155
  };
17154
17156
  if (!player.value) {
17157
+ console.log("new WebRtcMt");
17155
17158
  player.value = new WebRtcMt({
17156
17159
  plays,
17157
17160
  playback: true
17158
17161
  });
17159
17162
  } else {
17163
+ console.log("createVideo");
17160
17164
  player.value.p_player = player.value.createVideo(plays);
17161
17165
  }
17162
17166
  player.value.p_player.then(async () => {
@@ -17182,9 +17186,6 @@ const VideoPlayBack = defineComponent({
17182
17186
  console.log(e);
17183
17187
  isLoading.value = false;
17184
17188
  isError.value = true;
17185
- setTimeout(() => {
17186
- init();
17187
- }, 5e3);
17188
17189
  });
17189
17190
  }).catch(e => {
17190
17191
  console.log(e);
@@ -17211,8 +17212,9 @@ const VideoPlayBack = defineComponent({
17211
17212
  };
17212
17213
  const stopStream = (video = dom.value) => {
17213
17214
  timer && clearInterval(timer);
17214
- player.value?.stopPlay(video);
17215
17215
  player.value?.delStream(video);
17216
+ player.value?.stopPlay(video);
17217
+ console.log("stopStream");
17216
17218
  player.value = null;
17217
17219
  };
17218
17220
  const timeChange = () => {
@@ -17236,7 +17238,9 @@ const VideoPlayBack = defineComponent({
17236
17238
  init();
17237
17239
  }
17238
17240
  });
17239
- onBeforeUnmount(stopStream);
17241
+ onBeforeUnmount(() => {
17242
+ stopStream();
17243
+ });
17240
17244
  return () => createVNode("div", {
17241
17245
  "ref": cpnRef,
17242
17246
  "class": "video-play-back-cpn"
package/dist/index.cjs CHANGED
@@ -45,7 +45,7 @@ var ___default = /*#__PURE__*/_interopDefaultLegacy(_);
45
45
  var dayjs__default = /*#__PURE__*/_interopDefaultLegacy(dayjs);
46
46
  var mqtt__default = /*#__PURE__*/_interopDefaultLegacy(mqtt);
47
47
 
48
- var version = "0.1.145";
48
+ var version = "0.1.147";
49
49
 
50
50
  const setTheme = theme => {
51
51
  if (theme === "dark") {
@@ -18020,6 +18020,7 @@ class WebRtcMt {
18020
18020
  this.stopPlay();
18021
18021
  if (dom) {
18022
18022
  setTimeout(() => {
18023
+ console.log("\u91CD\u65B0\u62C9\u6D41");
18023
18024
  this.init(this.opt);
18024
18025
  }, 3e3);
18025
18026
  }
@@ -18133,6 +18134,7 @@ const VideoPlayBack = vue.defineComponent({
18133
18134
  const init = async () => {
18134
18135
  isLoading.value = true;
18135
18136
  isError.value = false;
18137
+ console.log("init video");
18136
18138
  stopStream();
18137
18139
  const params = {
18138
18140
  buzKey: "playback_" + props.cameraId,
@@ -18167,11 +18169,13 @@ const VideoPlayBack = vue.defineComponent({
18167
18169
  secret
18168
18170
  };
18169
18171
  if (!player.value) {
18172
+ console.log("new WebRtcMt");
18170
18173
  player.value = new WebRtcMt({
18171
18174
  plays,
18172
18175
  playback: true
18173
18176
  });
18174
18177
  } else {
18178
+ console.log("createVideo");
18175
18179
  player.value.p_player = player.value.createVideo(plays);
18176
18180
  }
18177
18181
  player.value.p_player.then(async () => {
@@ -18197,9 +18201,6 @@ const VideoPlayBack = vue.defineComponent({
18197
18201
  console.log(e);
18198
18202
  isLoading.value = false;
18199
18203
  isError.value = true;
18200
- setTimeout(() => {
18201
- init();
18202
- }, 5e3);
18203
18204
  });
18204
18205
  }).catch(e => {
18205
18206
  console.log(e);
@@ -18226,8 +18227,9 @@ const VideoPlayBack = vue.defineComponent({
18226
18227
  };
18227
18228
  const stopStream = (video = dom.value) => {
18228
18229
  timer && clearInterval(timer);
18229
- player.value?.stopPlay(video);
18230
18230
  player.value?.delStream(video);
18231
+ player.value?.stopPlay(video);
18232
+ console.log("stopStream");
18231
18233
  player.value = null;
18232
18234
  };
18233
18235
  const timeChange = () => {
@@ -18251,7 +18253,9 @@ const VideoPlayBack = vue.defineComponent({
18251
18253
  init();
18252
18254
  }
18253
18255
  });
18254
- vue.onBeforeUnmount(stopStream);
18256
+ vue.onBeforeUnmount(() => {
18257
+ stopStream();
18258
+ });
18255
18259
  return () => vue.createVNode("div", {
18256
18260
  "ref": cpnRef,
18257
18261
  "class": "video-play-back-cpn"
package/dist/index.d.ts CHANGED
@@ -11,7 +11,7 @@ import { Key } from 'ant-design-vue/lib/table/interface';
11
11
  import * as vue_jsx_runtime from 'vue/jsx-runtime';
12
12
  import * as _ant_design_icons_vue_lib_components_IconFont from '@ant-design/icons-vue/lib/components/IconFont';
13
13
 
14
- var version = "0.1.145";
14
+ var version = "0.1.147";
15
15
 
16
16
  declare const _default$p: {
17
17
  set(theme: string): void;
package/dist/index.js CHANGED
@@ -14,7 +14,7 @@ import { XPopup, CommentBlock, setAxiosOption } from '@sszj-temp/mobile';
14
14
  import { marked } from 'marked';
15
15
  import '@sszj-temp/mobile/style.css';
16
16
 
17
- var version = "0.1.145";
17
+ var version = "0.1.147";
18
18
 
19
19
  const setTheme = theme => {
20
20
  if (theme === "dark") {
@@ -17989,6 +17989,7 @@ class WebRtcMt {
17989
17989
  this.stopPlay();
17990
17990
  if (dom) {
17991
17991
  setTimeout(() => {
17992
+ console.log("\u91CD\u65B0\u62C9\u6D41");
17992
17993
  this.init(this.opt);
17993
17994
  }, 3e3);
17994
17995
  }
@@ -18102,6 +18103,7 @@ const VideoPlayBack = defineComponent({
18102
18103
  const init = async () => {
18103
18104
  isLoading.value = true;
18104
18105
  isError.value = false;
18106
+ console.log("init video");
18105
18107
  stopStream();
18106
18108
  const params = {
18107
18109
  buzKey: "playback_" + props.cameraId,
@@ -18136,11 +18138,13 @@ const VideoPlayBack = defineComponent({
18136
18138
  secret
18137
18139
  };
18138
18140
  if (!player.value) {
18141
+ console.log("new WebRtcMt");
18139
18142
  player.value = new WebRtcMt({
18140
18143
  plays,
18141
18144
  playback: true
18142
18145
  });
18143
18146
  } else {
18147
+ console.log("createVideo");
18144
18148
  player.value.p_player = player.value.createVideo(plays);
18145
18149
  }
18146
18150
  player.value.p_player.then(async () => {
@@ -18166,9 +18170,6 @@ const VideoPlayBack = defineComponent({
18166
18170
  console.log(e);
18167
18171
  isLoading.value = false;
18168
18172
  isError.value = true;
18169
- setTimeout(() => {
18170
- init();
18171
- }, 5e3);
18172
18173
  });
18173
18174
  }).catch(e => {
18174
18175
  console.log(e);
@@ -18195,8 +18196,9 @@ const VideoPlayBack = defineComponent({
18195
18196
  };
18196
18197
  const stopStream = (video = dom.value) => {
18197
18198
  timer && clearInterval(timer);
18198
- player.value?.stopPlay(video);
18199
18199
  player.value?.delStream(video);
18200
+ player.value?.stopPlay(video);
18201
+ console.log("stopStream");
18200
18202
  player.value = null;
18201
18203
  };
18202
18204
  const timeChange = () => {
@@ -18220,7 +18222,9 @@ const VideoPlayBack = defineComponent({
18220
18222
  init();
18221
18223
  }
18222
18224
  });
18223
- onBeforeUnmount(stopStream);
18225
+ onBeforeUnmount(() => {
18226
+ stopStream();
18227
+ });
18224
18228
  return () => createVNode("div", {
18225
18229
  "ref": cpnRef,
18226
18230
  "class": "video-play-back-cpn"
@@ -14069,6 +14069,7 @@ class WebRtcMt {
14069
14069
  this.stopPlay();
14070
14070
  if (dom) {
14071
14071
  setTimeout(() => {
14072
+ console.log("\u91CD\u65B0\u62C9\u6D41");
14072
14073
  this.init(this.opt);
14073
14074
  }, 3e3);
14074
14075
  }
@@ -14182,6 +14183,7 @@ const VideoPlayBack = vue.defineComponent({
14182
14183
  const init = async () => {
14183
14184
  isLoading.value = true;
14184
14185
  isError.value = false;
14186
+ console.log("init video");
14185
14187
  stopStream();
14186
14188
  const params = {
14187
14189
  buzKey: "playback_" + props.cameraId,
@@ -14216,11 +14218,13 @@ const VideoPlayBack = vue.defineComponent({
14216
14218
  secret
14217
14219
  };
14218
14220
  if (!player.value) {
14221
+ console.log("new WebRtcMt");
14219
14222
  player.value = new WebRtcMt({
14220
14223
  plays,
14221
14224
  playback: true
14222
14225
  });
14223
14226
  } else {
14227
+ console.log("createVideo");
14224
14228
  player.value.p_player = player.value.createVideo(plays);
14225
14229
  }
14226
14230
  player.value.p_player.then(async () => {
@@ -14246,9 +14250,6 @@ const VideoPlayBack = vue.defineComponent({
14246
14250
  console.log(e);
14247
14251
  isLoading.value = false;
14248
14252
  isError.value = true;
14249
- setTimeout(() => {
14250
- init();
14251
- }, 5e3);
14252
14253
  });
14253
14254
  }).catch(e => {
14254
14255
  console.log(e);
@@ -14275,8 +14276,9 @@ const VideoPlayBack = vue.defineComponent({
14275
14276
  };
14276
14277
  const stopStream = (video = dom.value) => {
14277
14278
  timer && clearInterval(timer);
14278
- player.value?.stopPlay(video);
14279
14279
  player.value?.delStream(video);
14280
+ player.value?.stopPlay(video);
14281
+ console.log("stopStream");
14280
14282
  player.value = null;
14281
14283
  };
14282
14284
  const timeChange = () => {
@@ -14300,7 +14302,9 @@ const VideoPlayBack = vue.defineComponent({
14300
14302
  init();
14301
14303
  }
14302
14304
  });
14303
- vue.onBeforeUnmount(stopStream);
14305
+ vue.onBeforeUnmount(() => {
14306
+ stopStream();
14307
+ });
14304
14308
  return () => vue.createVNode("div", {
14305
14309
  "ref": cpnRef,
14306
14310
  "class": "video-play-back-cpn"
@@ -14042,6 +14042,7 @@ class WebRtcMt {
14042
14042
  this.stopPlay();
14043
14043
  if (dom) {
14044
14044
  setTimeout(() => {
14045
+ console.log("\u91CD\u65B0\u62C9\u6D41");
14045
14046
  this.init(this.opt);
14046
14047
  }, 3e3);
14047
14048
  }
@@ -14155,6 +14156,7 @@ const VideoPlayBack = defineComponent({
14155
14156
  const init = async () => {
14156
14157
  isLoading.value = true;
14157
14158
  isError.value = false;
14159
+ console.log("init video");
14158
14160
  stopStream();
14159
14161
  const params = {
14160
14162
  buzKey: "playback_" + props.cameraId,
@@ -14189,11 +14191,13 @@ const VideoPlayBack = defineComponent({
14189
14191
  secret
14190
14192
  };
14191
14193
  if (!player.value) {
14194
+ console.log("new WebRtcMt");
14192
14195
  player.value = new WebRtcMt({
14193
14196
  plays,
14194
14197
  playback: true
14195
14198
  });
14196
14199
  } else {
14200
+ console.log("createVideo");
14197
14201
  player.value.p_player = player.value.createVideo(plays);
14198
14202
  }
14199
14203
  player.value.p_player.then(async () => {
@@ -14219,9 +14223,6 @@ const VideoPlayBack = defineComponent({
14219
14223
  console.log(e);
14220
14224
  isLoading.value = false;
14221
14225
  isError.value = true;
14222
- setTimeout(() => {
14223
- init();
14224
- }, 5e3);
14225
14226
  });
14226
14227
  }).catch(e => {
14227
14228
  console.log(e);
@@ -14248,8 +14249,9 @@ const VideoPlayBack = defineComponent({
14248
14249
  };
14249
14250
  const stopStream = (video = dom.value) => {
14250
14251
  timer && clearInterval(timer);
14251
- player.value?.stopPlay(video);
14252
14252
  player.value?.delStream(video);
14253
+ player.value?.stopPlay(video);
14254
+ console.log("stopStream");
14253
14255
  player.value = null;
14254
14256
  };
14255
14257
  const timeChange = () => {
@@ -14273,7 +14275,9 @@ const VideoPlayBack = defineComponent({
14273
14275
  init();
14274
14276
  }
14275
14277
  });
14276
- onBeforeUnmount(stopStream);
14278
+ onBeforeUnmount(() => {
14279
+ stopStream();
14280
+ });
14277
14281
  return () => createVNode("div", {
14278
14282
  "ref": cpnRef,
14279
14283
  "class": "video-play-back-cpn"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "inl-ui",
3
- "version": "0.1.146",
3
+ "version": "0.1.148",
4
4
  "description": "工业 pc ui库",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",