inl-ui 0.1.147 → 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.
@@ -17148,6 +17148,7 @@ const VideoPlayBack = vue.defineComponent({
17148
17148
  const init = async () => {
17149
17149
  isLoading.value = true;
17150
17150
  isError.value = false;
17151
+ console.log("init video");
17151
17152
  stopStream();
17152
17153
  const params = {
17153
17154
  buzKey: "playback_" + props.cameraId,
@@ -17182,11 +17183,13 @@ const VideoPlayBack = vue.defineComponent({
17182
17183
  secret
17183
17184
  };
17184
17185
  if (!player.value) {
17186
+ console.log("new WebRtcMt");
17185
17187
  player.value = new WebRtcMt({
17186
17188
  plays,
17187
17189
  playback: true
17188
17190
  });
17189
17191
  } else {
17192
+ console.log("createVideo");
17190
17193
  player.value.p_player = player.value.createVideo(plays);
17191
17194
  }
17192
17195
  player.value.p_player.then(async () => {
@@ -17240,6 +17243,7 @@ const VideoPlayBack = vue.defineComponent({
17240
17243
  timer && clearInterval(timer);
17241
17244
  player.value?.delStream(video);
17242
17245
  player.value?.stopPlay(video);
17246
+ console.log("stopStream");
17243
17247
  player.value = null;
17244
17248
  };
17245
17249
  const timeChange = () => {
@@ -17254,16 +17258,18 @@ const VideoPlayBack = vue.defineComponent({
17254
17258
  stopStream(`${o + props.cameraCode}`);
17255
17259
  init();
17256
17260
  }
17257
- }, {
17258
- immediate: true
17259
17261
  });
17260
17262
  expose({
17261
17263
  timeChange
17262
17264
  });
17263
17265
  vue.onMounted(() => {
17264
- if (props.autoPlay) ;
17266
+ if (props.autoPlay) {
17267
+ init();
17268
+ }
17269
+ });
17270
+ vue.onBeforeUnmount(() => {
17271
+ stopStream();
17265
17272
  });
17266
- vue.onBeforeUnmount(stopStream);
17267
17273
  return () => vue.createVNode("div", {
17268
17274
  "ref": cpnRef,
17269
17275
  "class": "video-play-back-cpn"
@@ -17119,6 +17119,7 @@ const VideoPlayBack = defineComponent({
17119
17119
  const init = async () => {
17120
17120
  isLoading.value = true;
17121
17121
  isError.value = false;
17122
+ console.log("init video");
17122
17123
  stopStream();
17123
17124
  const params = {
17124
17125
  buzKey: "playback_" + props.cameraId,
@@ -17153,11 +17154,13 @@ const VideoPlayBack = defineComponent({
17153
17154
  secret
17154
17155
  };
17155
17156
  if (!player.value) {
17157
+ console.log("new WebRtcMt");
17156
17158
  player.value = new WebRtcMt({
17157
17159
  plays,
17158
17160
  playback: true
17159
17161
  });
17160
17162
  } else {
17163
+ console.log("createVideo");
17161
17164
  player.value.p_player = player.value.createVideo(plays);
17162
17165
  }
17163
17166
  player.value.p_player.then(async () => {
@@ -17211,6 +17214,7 @@ const VideoPlayBack = defineComponent({
17211
17214
  timer && clearInterval(timer);
17212
17215
  player.value?.delStream(video);
17213
17216
  player.value?.stopPlay(video);
17217
+ console.log("stopStream");
17214
17218
  player.value = null;
17215
17219
  };
17216
17220
  const timeChange = () => {
@@ -17225,16 +17229,18 @@ const VideoPlayBack = defineComponent({
17225
17229
  stopStream(`${o + props.cameraCode}`);
17226
17230
  init();
17227
17231
  }
17228
- }, {
17229
- immediate: true
17230
17232
  });
17231
17233
  expose({
17232
17234
  timeChange
17233
17235
  });
17234
17236
  onMounted(() => {
17235
- if (props.autoPlay) ;
17237
+ if (props.autoPlay) {
17238
+ init();
17239
+ }
17240
+ });
17241
+ onBeforeUnmount(() => {
17242
+ stopStream();
17236
17243
  });
17237
- onBeforeUnmount(stopStream);
17238
17244
  return () => createVNode("div", {
17239
17245
  "ref": cpnRef,
17240
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.146";
48
+ var version = "0.1.147";
49
49
 
50
50
  const setTheme = theme => {
51
51
  if (theme === "dark") {
@@ -18134,6 +18134,7 @@ const VideoPlayBack = vue.defineComponent({
18134
18134
  const init = async () => {
18135
18135
  isLoading.value = true;
18136
18136
  isError.value = false;
18137
+ console.log("init video");
18137
18138
  stopStream();
18138
18139
  const params = {
18139
18140
  buzKey: "playback_" + props.cameraId,
@@ -18168,11 +18169,13 @@ const VideoPlayBack = vue.defineComponent({
18168
18169
  secret
18169
18170
  };
18170
18171
  if (!player.value) {
18172
+ console.log("new WebRtcMt");
18171
18173
  player.value = new WebRtcMt({
18172
18174
  plays,
18173
18175
  playback: true
18174
18176
  });
18175
18177
  } else {
18178
+ console.log("createVideo");
18176
18179
  player.value.p_player = player.value.createVideo(plays);
18177
18180
  }
18178
18181
  player.value.p_player.then(async () => {
@@ -18226,6 +18229,7 @@ const VideoPlayBack = vue.defineComponent({
18226
18229
  timer && clearInterval(timer);
18227
18230
  player.value?.delStream(video);
18228
18231
  player.value?.stopPlay(video);
18232
+ console.log("stopStream");
18229
18233
  player.value = null;
18230
18234
  };
18231
18235
  const timeChange = () => {
@@ -18240,16 +18244,18 @@ const VideoPlayBack = vue.defineComponent({
18240
18244
  stopStream(`${o + props.cameraCode}`);
18241
18245
  init();
18242
18246
  }
18243
- }, {
18244
- immediate: true
18245
18247
  });
18246
18248
  expose({
18247
18249
  timeChange
18248
18250
  });
18249
18251
  vue.onMounted(() => {
18250
- if (props.autoPlay) ;
18252
+ if (props.autoPlay) {
18253
+ init();
18254
+ }
18255
+ });
18256
+ vue.onBeforeUnmount(() => {
18257
+ stopStream();
18251
18258
  });
18252
- vue.onBeforeUnmount(stopStream);
18253
18259
  return () => vue.createVNode("div", {
18254
18260
  "ref": cpnRef,
18255
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.146";
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.146";
17
+ var version = "0.1.147";
18
18
 
19
19
  const setTheme = theme => {
20
20
  if (theme === "dark") {
@@ -18103,6 +18103,7 @@ const VideoPlayBack = defineComponent({
18103
18103
  const init = async () => {
18104
18104
  isLoading.value = true;
18105
18105
  isError.value = false;
18106
+ console.log("init video");
18106
18107
  stopStream();
18107
18108
  const params = {
18108
18109
  buzKey: "playback_" + props.cameraId,
@@ -18137,11 +18138,13 @@ const VideoPlayBack = defineComponent({
18137
18138
  secret
18138
18139
  };
18139
18140
  if (!player.value) {
18141
+ console.log("new WebRtcMt");
18140
18142
  player.value = new WebRtcMt({
18141
18143
  plays,
18142
18144
  playback: true
18143
18145
  });
18144
18146
  } else {
18147
+ console.log("createVideo");
18145
18148
  player.value.p_player = player.value.createVideo(plays);
18146
18149
  }
18147
18150
  player.value.p_player.then(async () => {
@@ -18195,6 +18198,7 @@ const VideoPlayBack = defineComponent({
18195
18198
  timer && clearInterval(timer);
18196
18199
  player.value?.delStream(video);
18197
18200
  player.value?.stopPlay(video);
18201
+ console.log("stopStream");
18198
18202
  player.value = null;
18199
18203
  };
18200
18204
  const timeChange = () => {
@@ -18209,16 +18213,18 @@ const VideoPlayBack = defineComponent({
18209
18213
  stopStream(`${o + props.cameraCode}`);
18210
18214
  init();
18211
18215
  }
18212
- }, {
18213
- immediate: true
18214
18216
  });
18215
18217
  expose({
18216
18218
  timeChange
18217
18219
  });
18218
18220
  onMounted(() => {
18219
- if (props.autoPlay) ;
18221
+ if (props.autoPlay) {
18222
+ init();
18223
+ }
18224
+ });
18225
+ onBeforeUnmount(() => {
18226
+ stopStream();
18220
18227
  });
18221
- onBeforeUnmount(stopStream);
18222
18228
  return () => createVNode("div", {
18223
18229
  "ref": cpnRef,
18224
18230
  "class": "video-play-back-cpn"
@@ -14183,6 +14183,7 @@ const VideoPlayBack = vue.defineComponent({
14183
14183
  const init = async () => {
14184
14184
  isLoading.value = true;
14185
14185
  isError.value = false;
14186
+ console.log("init video");
14186
14187
  stopStream();
14187
14188
  const params = {
14188
14189
  buzKey: "playback_" + props.cameraId,
@@ -14217,11 +14218,13 @@ const VideoPlayBack = vue.defineComponent({
14217
14218
  secret
14218
14219
  };
14219
14220
  if (!player.value) {
14221
+ console.log("new WebRtcMt");
14220
14222
  player.value = new WebRtcMt({
14221
14223
  plays,
14222
14224
  playback: true
14223
14225
  });
14224
14226
  } else {
14227
+ console.log("createVideo");
14225
14228
  player.value.p_player = player.value.createVideo(plays);
14226
14229
  }
14227
14230
  player.value.p_player.then(async () => {
@@ -14275,6 +14278,7 @@ const VideoPlayBack = vue.defineComponent({
14275
14278
  timer && clearInterval(timer);
14276
14279
  player.value?.delStream(video);
14277
14280
  player.value?.stopPlay(video);
14281
+ console.log("stopStream");
14278
14282
  player.value = null;
14279
14283
  };
14280
14284
  const timeChange = () => {
@@ -14289,16 +14293,18 @@ const VideoPlayBack = vue.defineComponent({
14289
14293
  stopStream(`${o + props.cameraCode}`);
14290
14294
  init();
14291
14295
  }
14292
- }, {
14293
- immediate: true
14294
14296
  });
14295
14297
  expose({
14296
14298
  timeChange
14297
14299
  });
14298
14300
  vue.onMounted(() => {
14299
- if (props.autoPlay) ;
14301
+ if (props.autoPlay) {
14302
+ init();
14303
+ }
14304
+ });
14305
+ vue.onBeforeUnmount(() => {
14306
+ stopStream();
14300
14307
  });
14301
- vue.onBeforeUnmount(stopStream);
14302
14308
  return () => vue.createVNode("div", {
14303
14309
  "ref": cpnRef,
14304
14310
  "class": "video-play-back-cpn"
@@ -14156,6 +14156,7 @@ const VideoPlayBack = defineComponent({
14156
14156
  const init = async () => {
14157
14157
  isLoading.value = true;
14158
14158
  isError.value = false;
14159
+ console.log("init video");
14159
14160
  stopStream();
14160
14161
  const params = {
14161
14162
  buzKey: "playback_" + props.cameraId,
@@ -14190,11 +14191,13 @@ const VideoPlayBack = defineComponent({
14190
14191
  secret
14191
14192
  };
14192
14193
  if (!player.value) {
14194
+ console.log("new WebRtcMt");
14193
14195
  player.value = new WebRtcMt({
14194
14196
  plays,
14195
14197
  playback: true
14196
14198
  });
14197
14199
  } else {
14200
+ console.log("createVideo");
14198
14201
  player.value.p_player = player.value.createVideo(plays);
14199
14202
  }
14200
14203
  player.value.p_player.then(async () => {
@@ -14248,6 +14251,7 @@ const VideoPlayBack = defineComponent({
14248
14251
  timer && clearInterval(timer);
14249
14252
  player.value?.delStream(video);
14250
14253
  player.value?.stopPlay(video);
14254
+ console.log("stopStream");
14251
14255
  player.value = null;
14252
14256
  };
14253
14257
  const timeChange = () => {
@@ -14262,16 +14266,18 @@ const VideoPlayBack = defineComponent({
14262
14266
  stopStream(`${o + props.cameraCode}`);
14263
14267
  init();
14264
14268
  }
14265
- }, {
14266
- immediate: true
14267
14269
  });
14268
14270
  expose({
14269
14271
  timeChange
14270
14272
  });
14271
14273
  onMounted(() => {
14272
- if (props.autoPlay) ;
14274
+ if (props.autoPlay) {
14275
+ init();
14276
+ }
14277
+ });
14278
+ onBeforeUnmount(() => {
14279
+ stopStream();
14273
14280
  });
14274
- onBeforeUnmount(stopStream);
14275
14281
  return () => createVNode("div", {
14276
14282
  "ref": cpnRef,
14277
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.147",
3
+ "version": "0.1.148",
4
4
  "description": "工业 pc ui库",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",