pb-sxp-ui 1.1.0 → 1.1.1
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 +13 -11
- package/dist/index.js +13 -11
- package/dist/index.min.cjs +3 -4
- package/dist/index.min.js +3 -4
- package/dist/pb-ui.js +13 -11
- package/dist/pb-ui.min.js +3 -4
- package/es/core/components/SxpPageRender/VideoWidget/index.js +10 -11
- package/lib/core/components/SxpPageRender/VideoWidget/index.js +10 -11
- package/package.json +1 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/index.min.cjs.map +0 -1
- package/dist/index.min.js.map +0 -1
- package/dist/pb-ui.js.map +0 -1
- package/dist/pb-ui.min.js.map +0 -1
package/dist/pb-ui.js
CHANGED
@@ -13470,20 +13470,23 @@ Made in Italy` })));
|
|
13470
13470
|
(_j = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _j === void 0 ? void 0 : _j.addEventListener('canplay', handlePlay);
|
13471
13471
|
(_k = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _k === void 0 ? void 0 : _k.addEventListener('waiting', handleWaiting);
|
13472
13472
|
return () => {
|
13473
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
13473
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
13474
|
+
const isPause = (_a = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _a === void 0 ? void 0 : _a.paused;
|
13475
|
+
if (!isPause)
|
13476
|
+
handlePause();
|
13474
13477
|
if (hls)
|
13475
13478
|
hls === null || hls === void 0 ? void 0 : hls.destroy();
|
13476
13479
|
setIsLoadFinish(false);
|
13477
|
-
(
|
13478
|
-
(
|
13479
|
-
(
|
13480
|
-
(
|
13481
|
-
(
|
13482
|
-
(
|
13483
|
-
(
|
13484
|
-
(
|
13480
|
+
(_b = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _b === void 0 ? void 0 : _b.removeEventListener('loadedmetadata', handleLoadedmetadata);
|
13481
|
+
(_c = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _c === void 0 ? void 0 : _c.removeEventListener('loadeddata', handLoadeddata);
|
13482
|
+
(_d = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _d === void 0 ? void 0 : _d.removeEventListener('play', handleStartPlay);
|
13483
|
+
(_e = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _e === void 0 ? void 0 : _e.removeEventListener('playing', handlePlaying);
|
13484
|
+
(_f = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _f === void 0 ? void 0 : _f.removeEventListener('pause', handlePause);
|
13485
|
+
(_g = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _g === void 0 ? void 0 : _g.removeEventListener('ended', handlePlay);
|
13486
|
+
(_h = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _h === void 0 ? void 0 : _h.removeEventListener('canplay', handlePlay);
|
13487
|
+
(_j = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _j === void 0 ? void 0 : _j.removeEventListener('waiting', handleWaiting);
|
13485
13488
|
};
|
13486
|
-
}, [isActive, videoId, rec]);
|
13489
|
+
}, [isActive, videoId, rec, handlePause]);
|
13487
13490
|
React.useEffect(() => {
|
13488
13491
|
var _a, _b;
|
13489
13492
|
if (!(videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) || !isLoadFinish)
|
@@ -14935,4 +14938,3 @@ Made in Italy` })));
|
|
14935
14938
|
Object.defineProperty(exports, '__esModule', { value: true });
|
14936
14939
|
|
14937
14940
|
}));
|
14938
|
-
//# sourceMappingURL=pb-ui.js.map
|