inl-ui 0.1.11 → 0.1.13
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 +11 -7
- package/dist/components/index.js +11 -7
- package/dist/index.cjs +12 -8
- package/dist/index.d.ts +1 -1
- package/dist/index.js +12 -8
- package/dist/video/index.cjs +11 -7
- package/dist/video/index.js +11 -7
- package/dist/videoMobile/index.cjs +6 -0
- package/dist/videoMobile/index.js +6 -0
- package/package.json +1 -1
|
@@ -7598,6 +7598,12 @@ const VideoPlayerV2 = vue.defineComponent({
|
|
|
7598
7598
|
vue.onBeforeUnmount(() => {
|
|
7599
7599
|
stopPlay();
|
|
7600
7600
|
stopV(`videoPlayer_${uuid}`);
|
|
7601
|
+
const videoElement = document.getElementById(uuid);
|
|
7602
|
+
if (videoElement) {
|
|
7603
|
+
videoElement.src = null;
|
|
7604
|
+
videoElement.srcObject = null;
|
|
7605
|
+
videoElement.remove();
|
|
7606
|
+
}
|
|
7601
7607
|
});
|
|
7602
7608
|
return () => vue.createVNode("video", {
|
|
7603
7609
|
"id": `videoPlayer_${uuid}`,
|
|
@@ -7992,7 +7998,7 @@ const VideoBoxV2 = vue.defineComponent({
|
|
|
7992
7998
|
token: sessionStorage.getItem("token")
|
|
7993
7999
|
}
|
|
7994
8000
|
});
|
|
7995
|
-
setTimeout(() => {
|
|
8001
|
+
timeout = setTimeout(() => {
|
|
7996
8002
|
getThingValue();
|
|
7997
8003
|
}, 3e3);
|
|
7998
8004
|
infos.value.forEach(info => {
|
|
@@ -8015,13 +8021,14 @@ const VideoBoxV2 = vue.defineComponent({
|
|
|
8015
8021
|
token: sessionStorage.getItem("token")
|
|
8016
8022
|
}
|
|
8017
8023
|
});
|
|
8018
|
-
res.data.data
|
|
8024
|
+
res.data.data?.forEach((ele, index) => {
|
|
8019
8025
|
arr[ele.position] = ele;
|
|
8020
8026
|
});
|
|
8021
8027
|
infos.value = arr;
|
|
8022
|
-
if (res.data.data
|
|
8028
|
+
if (res.data.data?.length === 0) {
|
|
8023
8029
|
showInfo.value = false;
|
|
8024
8030
|
} else {
|
|
8031
|
+
clearTimeout(timeout);
|
|
8025
8032
|
getThingValue();
|
|
8026
8033
|
}
|
|
8027
8034
|
};
|
|
@@ -8036,7 +8043,7 @@ const VideoBoxV2 = vue.defineComponent({
|
|
|
8036
8043
|
streams.value = JSON.parse(camera.value.brandTypePo?.streamTypeDict || "[]");
|
|
8037
8044
|
};
|
|
8038
8045
|
let interval;
|
|
8039
|
-
let
|
|
8046
|
+
let timeout;
|
|
8040
8047
|
let show = vue.ref(true);
|
|
8041
8048
|
const timer = setInterval(() => {
|
|
8042
8049
|
show.value = false;
|
|
@@ -8046,16 +8053,13 @@ const VideoBoxV2 = vue.defineComponent({
|
|
|
8046
8053
|
}, _prop.intervalTime * (0.5 + Math.random()));
|
|
8047
8054
|
vue.onBeforeUnmount(() => {
|
|
8048
8055
|
clearInterval(interval);
|
|
8049
|
-
clearInterval(intervalSet);
|
|
8050
8056
|
clearInterval(timer);
|
|
8051
8057
|
});
|
|
8052
8058
|
const fill = vue.ref("fill");
|
|
8053
8059
|
vue.watch(() => _prop.camera, val => {
|
|
8054
8060
|
if (val && Object.keys(val).length != 0) {
|
|
8055
8061
|
clearInterval(interval);
|
|
8056
|
-
clearInterval(intervalSet);
|
|
8057
8062
|
getVideoParams(val);
|
|
8058
|
-
intervalSet = setInterval(() => {}, 1800 * 1e3);
|
|
8059
8063
|
getVideoDetail(val);
|
|
8060
8064
|
const fillVal = localStorage.getItem(val);
|
|
8061
8065
|
if (fillVal) {
|
package/dist/components/index.js
CHANGED
|
@@ -7588,6 +7588,12 @@ const VideoPlayerV2 = defineComponent({
|
|
|
7588
7588
|
onBeforeUnmount(() => {
|
|
7589
7589
|
stopPlay();
|
|
7590
7590
|
stopV(`videoPlayer_${uuid}`);
|
|
7591
|
+
const videoElement = document.getElementById(uuid);
|
|
7592
|
+
if (videoElement) {
|
|
7593
|
+
videoElement.src = null;
|
|
7594
|
+
videoElement.srcObject = null;
|
|
7595
|
+
videoElement.remove();
|
|
7596
|
+
}
|
|
7591
7597
|
});
|
|
7592
7598
|
return () => createVNode("video", {
|
|
7593
7599
|
"id": `videoPlayer_${uuid}`,
|
|
@@ -7982,7 +7988,7 @@ const VideoBoxV2 = defineComponent({
|
|
|
7982
7988
|
token: sessionStorage.getItem("token")
|
|
7983
7989
|
}
|
|
7984
7990
|
});
|
|
7985
|
-
setTimeout(() => {
|
|
7991
|
+
timeout = setTimeout(() => {
|
|
7986
7992
|
getThingValue();
|
|
7987
7993
|
}, 3e3);
|
|
7988
7994
|
infos.value.forEach(info => {
|
|
@@ -8005,13 +8011,14 @@ const VideoBoxV2 = defineComponent({
|
|
|
8005
8011
|
token: sessionStorage.getItem("token")
|
|
8006
8012
|
}
|
|
8007
8013
|
});
|
|
8008
|
-
res.data.data
|
|
8014
|
+
res.data.data?.forEach((ele, index) => {
|
|
8009
8015
|
arr[ele.position] = ele;
|
|
8010
8016
|
});
|
|
8011
8017
|
infos.value = arr;
|
|
8012
|
-
if (res.data.data
|
|
8018
|
+
if (res.data.data?.length === 0) {
|
|
8013
8019
|
showInfo.value = false;
|
|
8014
8020
|
} else {
|
|
8021
|
+
clearTimeout(timeout);
|
|
8015
8022
|
getThingValue();
|
|
8016
8023
|
}
|
|
8017
8024
|
};
|
|
@@ -8026,7 +8033,7 @@ const VideoBoxV2 = defineComponent({
|
|
|
8026
8033
|
streams.value = JSON.parse(camera.value.brandTypePo?.streamTypeDict || "[]");
|
|
8027
8034
|
};
|
|
8028
8035
|
let interval;
|
|
8029
|
-
let
|
|
8036
|
+
let timeout;
|
|
8030
8037
|
let show = ref(true);
|
|
8031
8038
|
const timer = setInterval(() => {
|
|
8032
8039
|
show.value = false;
|
|
@@ -8036,16 +8043,13 @@ const VideoBoxV2 = defineComponent({
|
|
|
8036
8043
|
}, _prop.intervalTime * (0.5 + Math.random()));
|
|
8037
8044
|
onBeforeUnmount(() => {
|
|
8038
8045
|
clearInterval(interval);
|
|
8039
|
-
clearInterval(intervalSet);
|
|
8040
8046
|
clearInterval(timer);
|
|
8041
8047
|
});
|
|
8042
8048
|
const fill = ref("fill");
|
|
8043
8049
|
watch(() => _prop.camera, val => {
|
|
8044
8050
|
if (val && Object.keys(val).length != 0) {
|
|
8045
8051
|
clearInterval(interval);
|
|
8046
|
-
clearInterval(intervalSet);
|
|
8047
8052
|
getVideoParams(val);
|
|
8048
|
-
intervalSet = setInterval(() => {}, 1800 * 1e3);
|
|
8049
8053
|
getVideoDetail(val);
|
|
8050
8054
|
const fillVal = localStorage.getItem(val);
|
|
8051
8055
|
if (fillVal) {
|
package/dist/index.cjs
CHANGED
|
@@ -43,7 +43,7 @@ var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios);
|
|
|
43
43
|
var ___default = /*#__PURE__*/_interopDefaultLegacy(_);
|
|
44
44
|
var dayjs__default = /*#__PURE__*/_interopDefaultLegacy(dayjs);
|
|
45
45
|
|
|
46
|
-
var version = "0.1.
|
|
46
|
+
var version = "0.1.12";
|
|
47
47
|
|
|
48
48
|
const setTheme = theme => {
|
|
49
49
|
if (theme === "dark") {
|
|
@@ -8603,6 +8603,12 @@ const VideoPlayerV2 = vue.defineComponent({
|
|
|
8603
8603
|
vue.onBeforeUnmount(() => {
|
|
8604
8604
|
stopPlay();
|
|
8605
8605
|
stopV(`videoPlayer_${uuid}`);
|
|
8606
|
+
const videoElement = document.getElementById(uuid);
|
|
8607
|
+
if (videoElement) {
|
|
8608
|
+
videoElement.src = null;
|
|
8609
|
+
videoElement.srcObject = null;
|
|
8610
|
+
videoElement.remove();
|
|
8611
|
+
}
|
|
8606
8612
|
});
|
|
8607
8613
|
return () => vue.createVNode("video", {
|
|
8608
8614
|
"id": `videoPlayer_${uuid}`,
|
|
@@ -8997,7 +9003,7 @@ const VideoBoxV2 = vue.defineComponent({
|
|
|
8997
9003
|
token: sessionStorage.getItem("token")
|
|
8998
9004
|
}
|
|
8999
9005
|
});
|
|
9000
|
-
setTimeout(() => {
|
|
9006
|
+
timeout = setTimeout(() => {
|
|
9001
9007
|
getThingValue();
|
|
9002
9008
|
}, 3e3);
|
|
9003
9009
|
infos.value.forEach(info => {
|
|
@@ -9020,13 +9026,14 @@ const VideoBoxV2 = vue.defineComponent({
|
|
|
9020
9026
|
token: sessionStorage.getItem("token")
|
|
9021
9027
|
}
|
|
9022
9028
|
});
|
|
9023
|
-
res.data.data
|
|
9029
|
+
res.data.data?.forEach((ele, index) => {
|
|
9024
9030
|
arr[ele.position] = ele;
|
|
9025
9031
|
});
|
|
9026
9032
|
infos.value = arr;
|
|
9027
|
-
if (res.data.data
|
|
9033
|
+
if (res.data.data?.length === 0) {
|
|
9028
9034
|
showInfo.value = false;
|
|
9029
9035
|
} else {
|
|
9036
|
+
clearTimeout(timeout);
|
|
9030
9037
|
getThingValue();
|
|
9031
9038
|
}
|
|
9032
9039
|
};
|
|
@@ -9041,7 +9048,7 @@ const VideoBoxV2 = vue.defineComponent({
|
|
|
9041
9048
|
streams.value = JSON.parse(camera.value.brandTypePo?.streamTypeDict || "[]");
|
|
9042
9049
|
};
|
|
9043
9050
|
let interval;
|
|
9044
|
-
let
|
|
9051
|
+
let timeout;
|
|
9045
9052
|
let show = vue.ref(true);
|
|
9046
9053
|
const timer = setInterval(() => {
|
|
9047
9054
|
show.value = false;
|
|
@@ -9051,16 +9058,13 @@ const VideoBoxV2 = vue.defineComponent({
|
|
|
9051
9058
|
}, _prop.intervalTime * (0.5 + Math.random()));
|
|
9052
9059
|
vue.onBeforeUnmount(() => {
|
|
9053
9060
|
clearInterval(interval);
|
|
9054
|
-
clearInterval(intervalSet);
|
|
9055
9061
|
clearInterval(timer);
|
|
9056
9062
|
});
|
|
9057
9063
|
const fill = vue.ref("fill");
|
|
9058
9064
|
vue.watch(() => _prop.camera, val => {
|
|
9059
9065
|
if (val && Object.keys(val).length != 0) {
|
|
9060
9066
|
clearInterval(interval);
|
|
9061
|
-
clearInterval(intervalSet);
|
|
9062
9067
|
getVideoParams(val);
|
|
9063
|
-
intervalSet = setInterval(() => {}, 1800 * 1e3);
|
|
9064
9068
|
getVideoDetail(val);
|
|
9065
9069
|
const fillVal = localStorage.getItem(val);
|
|
9066
9070
|
if (fillVal) {
|
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.12";
|
|
15
15
|
|
|
16
16
|
declare const _default$o: {
|
|
17
17
|
set(theme: string): void;
|
package/dist/index.js
CHANGED
|
@@ -13,7 +13,7 @@ import { XPopup, CommentBlock, setAxiosOption } from '@sszj-temp/mobile';
|
|
|
13
13
|
import { marked } from 'marked';
|
|
14
14
|
import '@sszj-temp/mobile/style.css';
|
|
15
15
|
|
|
16
|
-
var version = "0.1.
|
|
16
|
+
var version = "0.1.12";
|
|
17
17
|
|
|
18
18
|
const setTheme = theme => {
|
|
19
19
|
if (theme === "dark") {
|
|
@@ -8573,6 +8573,12 @@ const VideoPlayerV2 = defineComponent({
|
|
|
8573
8573
|
onBeforeUnmount(() => {
|
|
8574
8574
|
stopPlay();
|
|
8575
8575
|
stopV(`videoPlayer_${uuid}`);
|
|
8576
|
+
const videoElement = document.getElementById(uuid);
|
|
8577
|
+
if (videoElement) {
|
|
8578
|
+
videoElement.src = null;
|
|
8579
|
+
videoElement.srcObject = null;
|
|
8580
|
+
videoElement.remove();
|
|
8581
|
+
}
|
|
8576
8582
|
});
|
|
8577
8583
|
return () => createVNode("video", {
|
|
8578
8584
|
"id": `videoPlayer_${uuid}`,
|
|
@@ -8967,7 +8973,7 @@ const VideoBoxV2 = defineComponent({
|
|
|
8967
8973
|
token: sessionStorage.getItem("token")
|
|
8968
8974
|
}
|
|
8969
8975
|
});
|
|
8970
|
-
setTimeout(() => {
|
|
8976
|
+
timeout = setTimeout(() => {
|
|
8971
8977
|
getThingValue();
|
|
8972
8978
|
}, 3e3);
|
|
8973
8979
|
infos.value.forEach(info => {
|
|
@@ -8990,13 +8996,14 @@ const VideoBoxV2 = defineComponent({
|
|
|
8990
8996
|
token: sessionStorage.getItem("token")
|
|
8991
8997
|
}
|
|
8992
8998
|
});
|
|
8993
|
-
res.data.data
|
|
8999
|
+
res.data.data?.forEach((ele, index) => {
|
|
8994
9000
|
arr[ele.position] = ele;
|
|
8995
9001
|
});
|
|
8996
9002
|
infos.value = arr;
|
|
8997
|
-
if (res.data.data
|
|
9003
|
+
if (res.data.data?.length === 0) {
|
|
8998
9004
|
showInfo.value = false;
|
|
8999
9005
|
} else {
|
|
9006
|
+
clearTimeout(timeout);
|
|
9000
9007
|
getThingValue();
|
|
9001
9008
|
}
|
|
9002
9009
|
};
|
|
@@ -9011,7 +9018,7 @@ const VideoBoxV2 = defineComponent({
|
|
|
9011
9018
|
streams.value = JSON.parse(camera.value.brandTypePo?.streamTypeDict || "[]");
|
|
9012
9019
|
};
|
|
9013
9020
|
let interval;
|
|
9014
|
-
let
|
|
9021
|
+
let timeout;
|
|
9015
9022
|
let show = ref(true);
|
|
9016
9023
|
const timer = setInterval(() => {
|
|
9017
9024
|
show.value = false;
|
|
@@ -9021,16 +9028,13 @@ const VideoBoxV2 = defineComponent({
|
|
|
9021
9028
|
}, _prop.intervalTime * (0.5 + Math.random()));
|
|
9022
9029
|
onBeforeUnmount(() => {
|
|
9023
9030
|
clearInterval(interval);
|
|
9024
|
-
clearInterval(intervalSet);
|
|
9025
9031
|
clearInterval(timer);
|
|
9026
9032
|
});
|
|
9027
9033
|
const fill = ref("fill");
|
|
9028
9034
|
watch(() => _prop.camera, val => {
|
|
9029
9035
|
if (val && Object.keys(val).length != 0) {
|
|
9030
9036
|
clearInterval(interval);
|
|
9031
|
-
clearInterval(intervalSet);
|
|
9032
9037
|
getVideoParams(val);
|
|
9033
|
-
intervalSet = setInterval(() => {}, 1800 * 1e3);
|
|
9034
9038
|
getVideoDetail(val);
|
|
9035
9039
|
const fillVal = localStorage.getItem(val);
|
|
9036
9040
|
if (fillVal) {
|
package/dist/video/index.cjs
CHANGED
|
@@ -4791,6 +4791,12 @@ const VideoPlayerV2 = vue.defineComponent({
|
|
|
4791
4791
|
vue.onBeforeUnmount(() => {
|
|
4792
4792
|
stopPlay();
|
|
4793
4793
|
stopV(`videoPlayer_${uuid}`);
|
|
4794
|
+
const videoElement = document.getElementById(uuid);
|
|
4795
|
+
if (videoElement) {
|
|
4796
|
+
videoElement.src = null;
|
|
4797
|
+
videoElement.srcObject = null;
|
|
4798
|
+
videoElement.remove();
|
|
4799
|
+
}
|
|
4794
4800
|
});
|
|
4795
4801
|
return () => vue.createVNode("video", {
|
|
4796
4802
|
"id": `videoPlayer_${uuid}`,
|
|
@@ -5185,7 +5191,7 @@ const VideoBoxV2 = vue.defineComponent({
|
|
|
5185
5191
|
token: sessionStorage.getItem("token")
|
|
5186
5192
|
}
|
|
5187
5193
|
});
|
|
5188
|
-
setTimeout(() => {
|
|
5194
|
+
timeout = setTimeout(() => {
|
|
5189
5195
|
getThingValue();
|
|
5190
5196
|
}, 3e3);
|
|
5191
5197
|
infos.value.forEach(info => {
|
|
@@ -5208,13 +5214,14 @@ const VideoBoxV2 = vue.defineComponent({
|
|
|
5208
5214
|
token: sessionStorage.getItem("token")
|
|
5209
5215
|
}
|
|
5210
5216
|
});
|
|
5211
|
-
res.data.data
|
|
5217
|
+
res.data.data?.forEach((ele, index) => {
|
|
5212
5218
|
arr[ele.position] = ele;
|
|
5213
5219
|
});
|
|
5214
5220
|
infos.value = arr;
|
|
5215
|
-
if (res.data.data
|
|
5221
|
+
if (res.data.data?.length === 0) {
|
|
5216
5222
|
showInfo.value = false;
|
|
5217
5223
|
} else {
|
|
5224
|
+
clearTimeout(timeout);
|
|
5218
5225
|
getThingValue();
|
|
5219
5226
|
}
|
|
5220
5227
|
};
|
|
@@ -5229,7 +5236,7 @@ const VideoBoxV2 = vue.defineComponent({
|
|
|
5229
5236
|
streams.value = JSON.parse(camera.value.brandTypePo?.streamTypeDict || "[]");
|
|
5230
5237
|
};
|
|
5231
5238
|
let interval;
|
|
5232
|
-
let
|
|
5239
|
+
let timeout;
|
|
5233
5240
|
let show = vue.ref(true);
|
|
5234
5241
|
const timer = setInterval(() => {
|
|
5235
5242
|
show.value = false;
|
|
@@ -5239,16 +5246,13 @@ const VideoBoxV2 = vue.defineComponent({
|
|
|
5239
5246
|
}, _prop.intervalTime * (0.5 + Math.random()));
|
|
5240
5247
|
vue.onBeforeUnmount(() => {
|
|
5241
5248
|
clearInterval(interval);
|
|
5242
|
-
clearInterval(intervalSet);
|
|
5243
5249
|
clearInterval(timer);
|
|
5244
5250
|
});
|
|
5245
5251
|
const fill = vue.ref("fill");
|
|
5246
5252
|
vue.watch(() => _prop.camera, val => {
|
|
5247
5253
|
if (val && Object.keys(val).length != 0) {
|
|
5248
5254
|
clearInterval(interval);
|
|
5249
|
-
clearInterval(intervalSet);
|
|
5250
5255
|
getVideoParams(val);
|
|
5251
|
-
intervalSet = setInterval(() => {}, 1800 * 1e3);
|
|
5252
5256
|
getVideoDetail(val);
|
|
5253
5257
|
const fillVal = localStorage.getItem(val);
|
|
5254
5258
|
if (fillVal) {
|
package/dist/video/index.js
CHANGED
|
@@ -4783,6 +4783,12 @@ const VideoPlayerV2 = defineComponent({
|
|
|
4783
4783
|
onBeforeUnmount(() => {
|
|
4784
4784
|
stopPlay();
|
|
4785
4785
|
stopV(`videoPlayer_${uuid}`);
|
|
4786
|
+
const videoElement = document.getElementById(uuid);
|
|
4787
|
+
if (videoElement) {
|
|
4788
|
+
videoElement.src = null;
|
|
4789
|
+
videoElement.srcObject = null;
|
|
4790
|
+
videoElement.remove();
|
|
4791
|
+
}
|
|
4786
4792
|
});
|
|
4787
4793
|
return () => createVNode("video", {
|
|
4788
4794
|
"id": `videoPlayer_${uuid}`,
|
|
@@ -5177,7 +5183,7 @@ const VideoBoxV2 = defineComponent({
|
|
|
5177
5183
|
token: sessionStorage.getItem("token")
|
|
5178
5184
|
}
|
|
5179
5185
|
});
|
|
5180
|
-
setTimeout(() => {
|
|
5186
|
+
timeout = setTimeout(() => {
|
|
5181
5187
|
getThingValue();
|
|
5182
5188
|
}, 3e3);
|
|
5183
5189
|
infos.value.forEach(info => {
|
|
@@ -5200,13 +5206,14 @@ const VideoBoxV2 = defineComponent({
|
|
|
5200
5206
|
token: sessionStorage.getItem("token")
|
|
5201
5207
|
}
|
|
5202
5208
|
});
|
|
5203
|
-
res.data.data
|
|
5209
|
+
res.data.data?.forEach((ele, index) => {
|
|
5204
5210
|
arr[ele.position] = ele;
|
|
5205
5211
|
});
|
|
5206
5212
|
infos.value = arr;
|
|
5207
|
-
if (res.data.data
|
|
5213
|
+
if (res.data.data?.length === 0) {
|
|
5208
5214
|
showInfo.value = false;
|
|
5209
5215
|
} else {
|
|
5216
|
+
clearTimeout(timeout);
|
|
5210
5217
|
getThingValue();
|
|
5211
5218
|
}
|
|
5212
5219
|
};
|
|
@@ -5221,7 +5228,7 @@ const VideoBoxV2 = defineComponent({
|
|
|
5221
5228
|
streams.value = JSON.parse(camera.value.brandTypePo?.streamTypeDict || "[]");
|
|
5222
5229
|
};
|
|
5223
5230
|
let interval;
|
|
5224
|
-
let
|
|
5231
|
+
let timeout;
|
|
5225
5232
|
let show = ref(true);
|
|
5226
5233
|
const timer = setInterval(() => {
|
|
5227
5234
|
show.value = false;
|
|
@@ -5231,16 +5238,13 @@ const VideoBoxV2 = defineComponent({
|
|
|
5231
5238
|
}, _prop.intervalTime * (0.5 + Math.random()));
|
|
5232
5239
|
onBeforeUnmount(() => {
|
|
5233
5240
|
clearInterval(interval);
|
|
5234
|
-
clearInterval(intervalSet);
|
|
5235
5241
|
clearInterval(timer);
|
|
5236
5242
|
});
|
|
5237
5243
|
const fill = ref("fill");
|
|
5238
5244
|
watch(() => _prop.camera, val => {
|
|
5239
5245
|
if (val && Object.keys(val).length != 0) {
|
|
5240
5246
|
clearInterval(interval);
|
|
5241
|
-
clearInterval(intervalSet);
|
|
5242
5247
|
getVideoParams(val);
|
|
5243
|
-
intervalSet = setInterval(() => {}, 1800 * 1e3);
|
|
5244
5248
|
getVideoDetail(val);
|
|
5245
5249
|
const fillVal = localStorage.getItem(val);
|
|
5246
5250
|
if (fillVal) {
|
|
@@ -4789,6 +4789,12 @@ const VideoPlayerV2 = vue.defineComponent({
|
|
|
4789
4789
|
vue.onBeforeUnmount(() => {
|
|
4790
4790
|
stopPlay();
|
|
4791
4791
|
stopV(`videoPlayer_${uuid}`);
|
|
4792
|
+
const videoElement = document.getElementById(uuid);
|
|
4793
|
+
if (videoElement) {
|
|
4794
|
+
videoElement.src = null;
|
|
4795
|
+
videoElement.srcObject = null;
|
|
4796
|
+
videoElement.remove();
|
|
4797
|
+
}
|
|
4792
4798
|
});
|
|
4793
4799
|
return () => vue.createVNode("video", {
|
|
4794
4800
|
"id": `videoPlayer_${uuid}`,
|
|
@@ -4781,6 +4781,12 @@ const VideoPlayerV2 = defineComponent({
|
|
|
4781
4781
|
onBeforeUnmount(() => {
|
|
4782
4782
|
stopPlay();
|
|
4783
4783
|
stopV(`videoPlayer_${uuid}`);
|
|
4784
|
+
const videoElement = document.getElementById(uuid);
|
|
4785
|
+
if (videoElement) {
|
|
4786
|
+
videoElement.src = null;
|
|
4787
|
+
videoElement.srcObject = null;
|
|
4788
|
+
videoElement.remove();
|
|
4789
|
+
}
|
|
4784
4790
|
});
|
|
4785
4791
|
return () => createVNode("video", {
|
|
4786
4792
|
"id": `videoPlayer_${uuid}`,
|