inl-ui 0.1.147 → 0.1.149
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/dist/components/index.cjs +14 -4
- package/dist/components/index.js +14 -4
- package/dist/index.cjs +15 -5
- package/dist/index.d.ts +1 -1
- package/dist/index.js +15 -5
- package/dist/video/index.cjs +14 -4
- package/dist/video/index.js +14 -4
- package/package.json +1 -1
|
@@ -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 () => {
|
|
@@ -17225,6 +17228,7 @@ const VideoPlayBack = vue.defineComponent({
|
|
|
17225
17228
|
startTime.value = props.start + currentPlayTime.value;
|
|
17226
17229
|
isPlaying.value = !isPlaying.value;
|
|
17227
17230
|
} else {
|
|
17231
|
+
console.log("\u6682\u505C\u5F00\u59CBinit");
|
|
17228
17232
|
init();
|
|
17229
17233
|
}
|
|
17230
17234
|
};
|
|
@@ -17234,12 +17238,14 @@ const VideoPlayBack = vue.defineComponent({
|
|
|
17234
17238
|
const passedTime = Math.round(fullDuration.value * (percent / 100));
|
|
17235
17239
|
currentPlayTime.value = passedTime;
|
|
17236
17240
|
startTime.value = props.start + passedTime;
|
|
17241
|
+
console.log("\u6EDA\u52A8\u6761init");
|
|
17237
17242
|
init();
|
|
17238
17243
|
};
|
|
17239
17244
|
const stopStream = (video = dom.value) => {
|
|
17240
17245
|
timer && clearInterval(timer);
|
|
17241
17246
|
player.value?.delStream(video);
|
|
17242
17247
|
player.value?.stopPlay(video);
|
|
17248
|
+
console.log("stopStream");
|
|
17243
17249
|
player.value = null;
|
|
17244
17250
|
};
|
|
17245
17251
|
const timeChange = () => {
|
|
@@ -17252,18 +17258,22 @@ const VideoPlayBack = vue.defineComponent({
|
|
|
17252
17258
|
currentPlayTime.value = 0;
|
|
17253
17259
|
startTime.value = props.start;
|
|
17254
17260
|
stopStream(`${o + props.cameraCode}`);
|
|
17261
|
+
console.log("watch init", props.cameraId);
|
|
17255
17262
|
init();
|
|
17256
17263
|
}
|
|
17257
|
-
}, {
|
|
17258
|
-
immediate: true
|
|
17259
17264
|
});
|
|
17260
17265
|
expose({
|
|
17261
17266
|
timeChange
|
|
17262
17267
|
});
|
|
17263
17268
|
vue.onMounted(() => {
|
|
17264
|
-
if (props.autoPlay)
|
|
17269
|
+
if (props.autoPlay && props.cameraId) {
|
|
17270
|
+
console.log("\u81EA\u52A8\u64AD\u653Einit");
|
|
17271
|
+
init();
|
|
17272
|
+
}
|
|
17273
|
+
});
|
|
17274
|
+
vue.onBeforeUnmount(() => {
|
|
17275
|
+
stopStream();
|
|
17265
17276
|
});
|
|
17266
|
-
vue.onBeforeUnmount(stopStream);
|
|
17267
17277
|
return () => vue.createVNode("div", {
|
|
17268
17278
|
"ref": cpnRef,
|
|
17269
17279
|
"class": "video-play-back-cpn"
|
package/dist/components/index.js
CHANGED
|
@@ -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 () => {
|
|
@@ -17196,6 +17199,7 @@ const VideoPlayBack = defineComponent({
|
|
|
17196
17199
|
startTime.value = props.start + currentPlayTime.value;
|
|
17197
17200
|
isPlaying.value = !isPlaying.value;
|
|
17198
17201
|
} else {
|
|
17202
|
+
console.log("\u6682\u505C\u5F00\u59CBinit");
|
|
17199
17203
|
init();
|
|
17200
17204
|
}
|
|
17201
17205
|
};
|
|
@@ -17205,12 +17209,14 @@ const VideoPlayBack = defineComponent({
|
|
|
17205
17209
|
const passedTime = Math.round(fullDuration.value * (percent / 100));
|
|
17206
17210
|
currentPlayTime.value = passedTime;
|
|
17207
17211
|
startTime.value = props.start + passedTime;
|
|
17212
|
+
console.log("\u6EDA\u52A8\u6761init");
|
|
17208
17213
|
init();
|
|
17209
17214
|
};
|
|
17210
17215
|
const stopStream = (video = dom.value) => {
|
|
17211
17216
|
timer && clearInterval(timer);
|
|
17212
17217
|
player.value?.delStream(video);
|
|
17213
17218
|
player.value?.stopPlay(video);
|
|
17219
|
+
console.log("stopStream");
|
|
17214
17220
|
player.value = null;
|
|
17215
17221
|
};
|
|
17216
17222
|
const timeChange = () => {
|
|
@@ -17223,18 +17229,22 @@ const VideoPlayBack = defineComponent({
|
|
|
17223
17229
|
currentPlayTime.value = 0;
|
|
17224
17230
|
startTime.value = props.start;
|
|
17225
17231
|
stopStream(`${o + props.cameraCode}`);
|
|
17232
|
+
console.log("watch init", props.cameraId);
|
|
17226
17233
|
init();
|
|
17227
17234
|
}
|
|
17228
|
-
}, {
|
|
17229
|
-
immediate: true
|
|
17230
17235
|
});
|
|
17231
17236
|
expose({
|
|
17232
17237
|
timeChange
|
|
17233
17238
|
});
|
|
17234
17239
|
onMounted(() => {
|
|
17235
|
-
if (props.autoPlay)
|
|
17240
|
+
if (props.autoPlay && props.cameraId) {
|
|
17241
|
+
console.log("\u81EA\u52A8\u64AD\u653Einit");
|
|
17242
|
+
init();
|
|
17243
|
+
}
|
|
17244
|
+
});
|
|
17245
|
+
onBeforeUnmount(() => {
|
|
17246
|
+
stopStream();
|
|
17236
17247
|
});
|
|
17237
|
-
onBeforeUnmount(stopStream);
|
|
17238
17248
|
return () => createVNode("div", {
|
|
17239
17249
|
"ref": cpnRef,
|
|
17240
17250
|
"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.
|
|
48
|
+
var version = "0.1.148";
|
|
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 () => {
|
|
@@ -18211,6 +18214,7 @@ const VideoPlayBack = vue.defineComponent({
|
|
|
18211
18214
|
startTime.value = props.start + currentPlayTime.value;
|
|
18212
18215
|
isPlaying.value = !isPlaying.value;
|
|
18213
18216
|
} else {
|
|
18217
|
+
console.log("\u6682\u505C\u5F00\u59CBinit");
|
|
18214
18218
|
init();
|
|
18215
18219
|
}
|
|
18216
18220
|
};
|
|
@@ -18220,12 +18224,14 @@ const VideoPlayBack = vue.defineComponent({
|
|
|
18220
18224
|
const passedTime = Math.round(fullDuration.value * (percent / 100));
|
|
18221
18225
|
currentPlayTime.value = passedTime;
|
|
18222
18226
|
startTime.value = props.start + passedTime;
|
|
18227
|
+
console.log("\u6EDA\u52A8\u6761init");
|
|
18223
18228
|
init();
|
|
18224
18229
|
};
|
|
18225
18230
|
const stopStream = (video = dom.value) => {
|
|
18226
18231
|
timer && clearInterval(timer);
|
|
18227
18232
|
player.value?.delStream(video);
|
|
18228
18233
|
player.value?.stopPlay(video);
|
|
18234
|
+
console.log("stopStream");
|
|
18229
18235
|
player.value = null;
|
|
18230
18236
|
};
|
|
18231
18237
|
const timeChange = () => {
|
|
@@ -18238,18 +18244,22 @@ const VideoPlayBack = vue.defineComponent({
|
|
|
18238
18244
|
currentPlayTime.value = 0;
|
|
18239
18245
|
startTime.value = props.start;
|
|
18240
18246
|
stopStream(`${o + props.cameraCode}`);
|
|
18247
|
+
console.log("watch init", props.cameraId);
|
|
18241
18248
|
init();
|
|
18242
18249
|
}
|
|
18243
|
-
}, {
|
|
18244
|
-
immediate: true
|
|
18245
18250
|
});
|
|
18246
18251
|
expose({
|
|
18247
18252
|
timeChange
|
|
18248
18253
|
});
|
|
18249
18254
|
vue.onMounted(() => {
|
|
18250
|
-
if (props.autoPlay)
|
|
18255
|
+
if (props.autoPlay && props.cameraId) {
|
|
18256
|
+
console.log("\u81EA\u52A8\u64AD\u653Einit");
|
|
18257
|
+
init();
|
|
18258
|
+
}
|
|
18259
|
+
});
|
|
18260
|
+
vue.onBeforeUnmount(() => {
|
|
18261
|
+
stopStream();
|
|
18251
18262
|
});
|
|
18252
|
-
vue.onBeforeUnmount(stopStream);
|
|
18253
18263
|
return () => vue.createVNode("div", {
|
|
18254
18264
|
"ref": cpnRef,
|
|
18255
18265
|
"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.
|
|
14
|
+
var version = "0.1.148";
|
|
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.
|
|
17
|
+
var version = "0.1.148";
|
|
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 () => {
|
|
@@ -18180,6 +18183,7 @@ const VideoPlayBack = defineComponent({
|
|
|
18180
18183
|
startTime.value = props.start + currentPlayTime.value;
|
|
18181
18184
|
isPlaying.value = !isPlaying.value;
|
|
18182
18185
|
} else {
|
|
18186
|
+
console.log("\u6682\u505C\u5F00\u59CBinit");
|
|
18183
18187
|
init();
|
|
18184
18188
|
}
|
|
18185
18189
|
};
|
|
@@ -18189,12 +18193,14 @@ const VideoPlayBack = defineComponent({
|
|
|
18189
18193
|
const passedTime = Math.round(fullDuration.value * (percent / 100));
|
|
18190
18194
|
currentPlayTime.value = passedTime;
|
|
18191
18195
|
startTime.value = props.start + passedTime;
|
|
18196
|
+
console.log("\u6EDA\u52A8\u6761init");
|
|
18192
18197
|
init();
|
|
18193
18198
|
};
|
|
18194
18199
|
const stopStream = (video = dom.value) => {
|
|
18195
18200
|
timer && clearInterval(timer);
|
|
18196
18201
|
player.value?.delStream(video);
|
|
18197
18202
|
player.value?.stopPlay(video);
|
|
18203
|
+
console.log("stopStream");
|
|
18198
18204
|
player.value = null;
|
|
18199
18205
|
};
|
|
18200
18206
|
const timeChange = () => {
|
|
@@ -18207,18 +18213,22 @@ const VideoPlayBack = defineComponent({
|
|
|
18207
18213
|
currentPlayTime.value = 0;
|
|
18208
18214
|
startTime.value = props.start;
|
|
18209
18215
|
stopStream(`${o + props.cameraCode}`);
|
|
18216
|
+
console.log("watch init", props.cameraId);
|
|
18210
18217
|
init();
|
|
18211
18218
|
}
|
|
18212
|
-
}, {
|
|
18213
|
-
immediate: true
|
|
18214
18219
|
});
|
|
18215
18220
|
expose({
|
|
18216
18221
|
timeChange
|
|
18217
18222
|
});
|
|
18218
18223
|
onMounted(() => {
|
|
18219
|
-
if (props.autoPlay)
|
|
18224
|
+
if (props.autoPlay && props.cameraId) {
|
|
18225
|
+
console.log("\u81EA\u52A8\u64AD\u653Einit");
|
|
18226
|
+
init();
|
|
18227
|
+
}
|
|
18228
|
+
});
|
|
18229
|
+
onBeforeUnmount(() => {
|
|
18230
|
+
stopStream();
|
|
18220
18231
|
});
|
|
18221
|
-
onBeforeUnmount(stopStream);
|
|
18222
18232
|
return () => createVNode("div", {
|
|
18223
18233
|
"ref": cpnRef,
|
|
18224
18234
|
"class": "video-play-back-cpn"
|
package/dist/video/index.cjs
CHANGED
|
@@ -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 () => {
|
|
@@ -14260,6 +14263,7 @@ const VideoPlayBack = vue.defineComponent({
|
|
|
14260
14263
|
startTime.value = props.start + currentPlayTime.value;
|
|
14261
14264
|
isPlaying.value = !isPlaying.value;
|
|
14262
14265
|
} else {
|
|
14266
|
+
console.log("\u6682\u505C\u5F00\u59CBinit");
|
|
14263
14267
|
init();
|
|
14264
14268
|
}
|
|
14265
14269
|
};
|
|
@@ -14269,12 +14273,14 @@ const VideoPlayBack = vue.defineComponent({
|
|
|
14269
14273
|
const passedTime = Math.round(fullDuration.value * (percent / 100));
|
|
14270
14274
|
currentPlayTime.value = passedTime;
|
|
14271
14275
|
startTime.value = props.start + passedTime;
|
|
14276
|
+
console.log("\u6EDA\u52A8\u6761init");
|
|
14272
14277
|
init();
|
|
14273
14278
|
};
|
|
14274
14279
|
const stopStream = (video = dom.value) => {
|
|
14275
14280
|
timer && clearInterval(timer);
|
|
14276
14281
|
player.value?.delStream(video);
|
|
14277
14282
|
player.value?.stopPlay(video);
|
|
14283
|
+
console.log("stopStream");
|
|
14278
14284
|
player.value = null;
|
|
14279
14285
|
};
|
|
14280
14286
|
const timeChange = () => {
|
|
@@ -14287,18 +14293,22 @@ const VideoPlayBack = vue.defineComponent({
|
|
|
14287
14293
|
currentPlayTime.value = 0;
|
|
14288
14294
|
startTime.value = props.start;
|
|
14289
14295
|
stopStream(`${o + props.cameraCode}`);
|
|
14296
|
+
console.log("watch init", props.cameraId);
|
|
14290
14297
|
init();
|
|
14291
14298
|
}
|
|
14292
|
-
}, {
|
|
14293
|
-
immediate: true
|
|
14294
14299
|
});
|
|
14295
14300
|
expose({
|
|
14296
14301
|
timeChange
|
|
14297
14302
|
});
|
|
14298
14303
|
vue.onMounted(() => {
|
|
14299
|
-
if (props.autoPlay)
|
|
14304
|
+
if (props.autoPlay && props.cameraId) {
|
|
14305
|
+
console.log("\u81EA\u52A8\u64AD\u653Einit");
|
|
14306
|
+
init();
|
|
14307
|
+
}
|
|
14308
|
+
});
|
|
14309
|
+
vue.onBeforeUnmount(() => {
|
|
14310
|
+
stopStream();
|
|
14300
14311
|
});
|
|
14301
|
-
vue.onBeforeUnmount(stopStream);
|
|
14302
14312
|
return () => vue.createVNode("div", {
|
|
14303
14313
|
"ref": cpnRef,
|
|
14304
14314
|
"class": "video-play-back-cpn"
|
package/dist/video/index.js
CHANGED
|
@@ -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 () => {
|
|
@@ -14233,6 +14236,7 @@ const VideoPlayBack = defineComponent({
|
|
|
14233
14236
|
startTime.value = props.start + currentPlayTime.value;
|
|
14234
14237
|
isPlaying.value = !isPlaying.value;
|
|
14235
14238
|
} else {
|
|
14239
|
+
console.log("\u6682\u505C\u5F00\u59CBinit");
|
|
14236
14240
|
init();
|
|
14237
14241
|
}
|
|
14238
14242
|
};
|
|
@@ -14242,12 +14246,14 @@ const VideoPlayBack = defineComponent({
|
|
|
14242
14246
|
const passedTime = Math.round(fullDuration.value * (percent / 100));
|
|
14243
14247
|
currentPlayTime.value = passedTime;
|
|
14244
14248
|
startTime.value = props.start + passedTime;
|
|
14249
|
+
console.log("\u6EDA\u52A8\u6761init");
|
|
14245
14250
|
init();
|
|
14246
14251
|
};
|
|
14247
14252
|
const stopStream = (video = dom.value) => {
|
|
14248
14253
|
timer && clearInterval(timer);
|
|
14249
14254
|
player.value?.delStream(video);
|
|
14250
14255
|
player.value?.stopPlay(video);
|
|
14256
|
+
console.log("stopStream");
|
|
14251
14257
|
player.value = null;
|
|
14252
14258
|
};
|
|
14253
14259
|
const timeChange = () => {
|
|
@@ -14260,18 +14266,22 @@ const VideoPlayBack = defineComponent({
|
|
|
14260
14266
|
currentPlayTime.value = 0;
|
|
14261
14267
|
startTime.value = props.start;
|
|
14262
14268
|
stopStream(`${o + props.cameraCode}`);
|
|
14269
|
+
console.log("watch init", props.cameraId);
|
|
14263
14270
|
init();
|
|
14264
14271
|
}
|
|
14265
|
-
}, {
|
|
14266
|
-
immediate: true
|
|
14267
14272
|
});
|
|
14268
14273
|
expose({
|
|
14269
14274
|
timeChange
|
|
14270
14275
|
});
|
|
14271
14276
|
onMounted(() => {
|
|
14272
|
-
if (props.autoPlay)
|
|
14277
|
+
if (props.autoPlay && props.cameraId) {
|
|
14278
|
+
console.log("\u81EA\u52A8\u64AD\u653Einit");
|
|
14279
|
+
init();
|
|
14280
|
+
}
|
|
14281
|
+
});
|
|
14282
|
+
onBeforeUnmount(() => {
|
|
14283
|
+
stopStream();
|
|
14273
14284
|
});
|
|
14274
|
-
onBeforeUnmount(stopStream);
|
|
14275
14285
|
return () => createVNode("div", {
|
|
14276
14286
|
"ref": cpnRef,
|
|
14277
14287
|
"class": "video-play-back-cpn"
|