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.js CHANGED
@@ -13053,7 +13053,8 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
13053
13053
  videoRef === null || videoRef === void 0 ? void 0 : videoRef.addEventListener('canplay', handlePlay);
13054
13054
  videoRef === null || videoRef === void 0 ? void 0 : videoRef.addEventListener('waiting', handleWaiting);
13055
13055
  return () => {
13056
- hls.destroy();
13056
+ if (hls)
13057
+ hls === null || hls === void 0 ? void 0 : hls.destroy();
13057
13058
  setIsLoadFinish(false);
13058
13059
  dom2 === null || dom2 === void 0 ? void 0 : dom2.appendChild(dom);
13059
13060
  videoRef === null || videoRef === void 0 ? void 0 : videoRef.removeEventListener('loadedmetadata', handleLoadedmetadata);