pb-sxp-ui 1.0.97 → 1.0.98
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/index.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +1 -1
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +2 -1
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +1 -1
- package/dist/pb-ui.min.js.map +1 -1
- package/es/core/components/SxpPageRender/VideoWidget/index.js +2 -1
- package/lib/core/components/SxpPageRender/VideoWidget/index.js +2 -1
- package/package.json +1 -1
@@ -215,7 +215,8 @@ const VideoWidget = ({ rec, index, height, data, muted, activeIndex, videoPostCo
|
|
215
215
|
videoRef === null || videoRef === void 0 ? void 0 : videoRef.addEventListener('canplay', handlePlay);
|
216
216
|
videoRef === null || videoRef === void 0 ? void 0 : videoRef.addEventListener('waiting', handleWaiting);
|
217
217
|
return () => {
|
218
|
-
hls
|
218
|
+
if (hls)
|
219
|
+
hls === null || hls === void 0 ? void 0 : hls.destroy();
|
219
220
|
setIsLoadFinish(false);
|
220
221
|
dom2 === null || dom2 === void 0 ? void 0 : dom2.appendChild(dom);
|
221
222
|
videoRef === null || videoRef === void 0 ? void 0 : videoRef.removeEventListener('loadedmetadata', handleLoadedmetadata);
|
@@ -218,7 +218,8 @@ const VideoWidget = ({ rec, index, height, data, muted, activeIndex, videoPostCo
|
|
218
218
|
videoRef === null || videoRef === void 0 ? void 0 : videoRef.addEventListener('canplay', handlePlay);
|
219
219
|
videoRef === null || videoRef === void 0 ? void 0 : videoRef.addEventListener('waiting', handleWaiting);
|
220
220
|
return () => {
|
221
|
-
hls
|
221
|
+
if (hls)
|
222
|
+
hls === null || hls === void 0 ? void 0 : hls.destroy();
|
222
223
|
setIsLoadFinish(false);
|
223
224
|
dom2 === null || dom2 === void 0 ? void 0 : dom2.appendChild(dom);
|
224
225
|
videoRef === null || videoRef === void 0 ? void 0 : videoRef.removeEventListener('loadedmetadata', handleLoadedmetadata);
|