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/pb-ui.js
CHANGED
@@ -12106,6 +12106,7 @@ Made in Italy` })));
|
|
12106
12106
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
12107
12107
|
if (!videoRef)
|
12108
12108
|
return;
|
12109
|
+
setIsLoadFinish(true);
|
12109
12110
|
setIsPauseVideo(false);
|
12110
12111
|
const item = data[index];
|
12111
12112
|
if (item && (videoRef === null || videoRef === void 0 ? void 0 : videoRef.duration())) {
|
@@ -12165,9 +12166,9 @@ Made in Italy` })));
|
|
12165
12166
|
// videoRef?.play();
|
12166
12167
|
// videoRef?.pause();
|
12167
12168
|
// }
|
12168
|
-
setIsLoadFinish(true);
|
12169
|
+
// setIsLoadFinish(true);
|
12169
12170
|
}, [videoRef, handLoadeddata]);
|
12170
|
-
|
12171
|
+
React.useCallback(() => {
|
12171
12172
|
setIsLoadFinish(true);
|
12172
12173
|
}, []);
|
12173
12174
|
const handleClickVideo = React.useCallback((type) => () => {
|
@@ -12241,11 +12242,10 @@ Made in Italy` })));
|
|
12241
12242
|
if (!dom && !dom2)
|
12242
12243
|
return;
|
12243
12244
|
videoPlayerWrapperNode === null || videoPlayerWrapperNode === void 0 ? void 0 : videoPlayerWrapperNode.appendChild(dom || dom2);
|
12244
|
-
videoRef.poster('https://graff-cdn.chatlabs.net/dev/img/8922b5b8-a954-4a61-9ffc-80edebdf02b4/sxp-portal/20240218/fsTan2fgYKJWrCpJtGZPogm0NnvdT1708239153661.jpeg');
|
12245
12245
|
videoRef === null || videoRef === void 0 ? void 0 : videoRef.src(videoSrc);
|
12246
12246
|
videoRef === null || videoRef === void 0 ? void 0 : videoRef.on('loadedmetadata', handleLoadedmetadata);
|
12247
12247
|
videoRef === null || videoRef === void 0 ? void 0 : videoRef.on('loadeddata', handLoadeddata);
|
12248
|
-
|
12248
|
+
// videoRef?.on('canplay', handleCanplay);
|
12249
12249
|
videoRef === null || videoRef === void 0 ? void 0 : videoRef.on('playing', handlePlaying);
|
12250
12250
|
videoRef === null || videoRef === void 0 ? void 0 : videoRef.on('pause', handlePause);
|
12251
12251
|
videoRef === null || videoRef === void 0 ? void 0 : videoRef.on('ended', handleEnded);
|
@@ -12253,7 +12253,7 @@ Made in Italy` })));
|
|
12253
12253
|
dom2 === null || dom2 === void 0 ? void 0 : dom2.appendChild(dom);
|
12254
12254
|
videoRef === null || videoRef === void 0 ? void 0 : videoRef.off('loadedmetadata', handleLoadedmetadata);
|
12255
12255
|
videoRef === null || videoRef === void 0 ? void 0 : videoRef.off('loadeddata', handLoadeddata);
|
12256
|
-
|
12256
|
+
// videoRef?.off('canplay', handleCanplay);
|
12257
12257
|
videoRef === null || videoRef === void 0 ? void 0 : videoRef.off('playing', handlePlaying);
|
12258
12258
|
videoRef === null || videoRef === void 0 ? void 0 : videoRef.off('pause', handlePause);
|
12259
12259
|
videoRef === null || videoRef === void 0 ? void 0 : videoRef.off('ended', handleEnded);
|