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.cjs
CHANGED
@@ -12115,6 +12115,7 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
|
|
12115
12115
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
12116
12116
|
if (!videoRef)
|
12117
12117
|
return;
|
12118
|
+
setIsLoadFinish(true);
|
12118
12119
|
setIsPauseVideo(false);
|
12119
12120
|
const item = data[index];
|
12120
12121
|
if (item && (videoRef === null || videoRef === void 0 ? void 0 : videoRef.duration())) {
|
@@ -12174,9 +12175,9 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
|
|
12174
12175
|
// videoRef?.play();
|
12175
12176
|
// videoRef?.pause();
|
12176
12177
|
// }
|
12177
|
-
setIsLoadFinish(true);
|
12178
|
+
// setIsLoadFinish(true);
|
12178
12179
|
}, [videoRef, handLoadeddata]);
|
12179
|
-
|
12180
|
+
React.useCallback(() => {
|
12180
12181
|
setIsLoadFinish(true);
|
12181
12182
|
}, []);
|
12182
12183
|
const handleClickVideo = React.useCallback((type) => () => {
|
@@ -12250,11 +12251,10 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
|
|
12250
12251
|
if (!dom && !dom2)
|
12251
12252
|
return;
|
12252
12253
|
videoPlayerWrapperNode === null || videoPlayerWrapperNode === void 0 ? void 0 : videoPlayerWrapperNode.appendChild(dom || dom2);
|
12253
|
-
videoRef.poster('https://graff-cdn.chatlabs.net/dev/img/8922b5b8-a954-4a61-9ffc-80edebdf02b4/sxp-portal/20240218/fsTan2fgYKJWrCpJtGZPogm0NnvdT1708239153661.jpeg');
|
12254
12254
|
videoRef === null || videoRef === void 0 ? void 0 : videoRef.src(videoSrc);
|
12255
12255
|
videoRef === null || videoRef === void 0 ? void 0 : videoRef.on('loadedmetadata', handleLoadedmetadata);
|
12256
12256
|
videoRef === null || videoRef === void 0 ? void 0 : videoRef.on('loadeddata', handLoadeddata);
|
12257
|
-
|
12257
|
+
// videoRef?.on('canplay', handleCanplay);
|
12258
12258
|
videoRef === null || videoRef === void 0 ? void 0 : videoRef.on('playing', handlePlaying);
|
12259
12259
|
videoRef === null || videoRef === void 0 ? void 0 : videoRef.on('pause', handlePause);
|
12260
12260
|
videoRef === null || videoRef === void 0 ? void 0 : videoRef.on('ended', handleEnded);
|
@@ -12262,7 +12262,7 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
|
|
12262
12262
|
dom2 === null || dom2 === void 0 ? void 0 : dom2.appendChild(dom);
|
12263
12263
|
videoRef === null || videoRef === void 0 ? void 0 : videoRef.off('loadedmetadata', handleLoadedmetadata);
|
12264
12264
|
videoRef === null || videoRef === void 0 ? void 0 : videoRef.off('loadeddata', handLoadeddata);
|
12265
|
-
|
12265
|
+
// videoRef?.off('canplay', handleCanplay);
|
12266
12266
|
videoRef === null || videoRef === void 0 ? void 0 : videoRef.off('playing', handlePlaying);
|
12267
12267
|
videoRef === null || videoRef === void 0 ? void 0 : videoRef.off('pause', handlePause);
|
12268
12268
|
videoRef === null || videoRef === void 0 ? void 0 : videoRef.off('ended', handleEnded);
|