pb-sxp-ui 1.0.50 → 1.0.51
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 +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +3 -3
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +3 -3
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +5 -5
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +3 -3
- package/dist/pb-ui.min.js.map +1 -1
- package/es/core/components/SxpPageRender/VideoWidget/index.js +1 -4
- package/lib/core/components/SxpPageRender/VideoWidget/index.js +1 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -12092,6 +12092,7 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
|
|
12092
12092
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
12093
12093
|
if (!videoRef)
|
12094
12094
|
return;
|
12095
|
+
setIsLoadFinish(true);
|
12095
12096
|
setIsPauseVideo(false);
|
12096
12097
|
const item = data[index];
|
12097
12098
|
if (item && (videoRef === null || videoRef === void 0 ? void 0 : videoRef.duration())) {
|
@@ -12151,9 +12152,9 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
|
|
12151
12152
|
// videoRef?.play();
|
12152
12153
|
// videoRef?.pause();
|
12153
12154
|
// }
|
12154
|
-
setIsLoadFinish(true);
|
12155
|
+
// setIsLoadFinish(true);
|
12155
12156
|
}, [videoRef, handLoadeddata]);
|
12156
|
-
|
12157
|
+
useCallback(() => {
|
12157
12158
|
setIsLoadFinish(true);
|
12158
12159
|
}, []);
|
12159
12160
|
const handleClickVideo = useCallback((type) => () => {
|
@@ -12227,11 +12228,10 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
|
|
12227
12228
|
if (!dom && !dom2)
|
12228
12229
|
return;
|
12229
12230
|
videoPlayerWrapperNode === null || videoPlayerWrapperNode === void 0 ? void 0 : videoPlayerWrapperNode.appendChild(dom || dom2);
|
12230
|
-
videoRef.poster('https://graff-cdn.chatlabs.net/dev/img/8922b5b8-a954-4a61-9ffc-80edebdf02b4/sxp-portal/20240218/fsTan2fgYKJWrCpJtGZPogm0NnvdT1708239153661.jpeg');
|
12231
12231
|
videoRef === null || videoRef === void 0 ? void 0 : videoRef.src(videoSrc);
|
12232
12232
|
videoRef === null || videoRef === void 0 ? void 0 : videoRef.on('loadedmetadata', handleLoadedmetadata);
|
12233
12233
|
videoRef === null || videoRef === void 0 ? void 0 : videoRef.on('loadeddata', handLoadeddata);
|
12234
|
-
|
12234
|
+
// videoRef?.on('canplay', handleCanplay);
|
12235
12235
|
videoRef === null || videoRef === void 0 ? void 0 : videoRef.on('playing', handlePlaying);
|
12236
12236
|
videoRef === null || videoRef === void 0 ? void 0 : videoRef.on('pause', handlePause);
|
12237
12237
|
videoRef === null || videoRef === void 0 ? void 0 : videoRef.on('ended', handleEnded);
|
@@ -12239,7 +12239,7 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
|
|
12239
12239
|
dom2 === null || dom2 === void 0 ? void 0 : dom2.appendChild(dom);
|
12240
12240
|
videoRef === null || videoRef === void 0 ? void 0 : videoRef.off('loadedmetadata', handleLoadedmetadata);
|
12241
12241
|
videoRef === null || videoRef === void 0 ? void 0 : videoRef.off('loadeddata', handLoadeddata);
|
12242
|
-
|
12242
|
+
// videoRef?.off('canplay', handleCanplay);
|
12243
12243
|
videoRef === null || videoRef === void 0 ? void 0 : videoRef.off('playing', handlePlaying);
|
12244
12244
|
videoRef === null || videoRef === void 0 ? void 0 : videoRef.off('pause', handlePause);
|
12245
12245
|
videoRef === null || videoRef === void 0 ? void 0 : videoRef.off('ended', handleEnded);
|