pds-dev-kit-web 2.2.171 → 2.2.172
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.
|
@@ -60,13 +60,6 @@ function VideoPlayer(props) {
|
|
|
60
60
|
var videoRef = (0, react_1.useRef)(null);
|
|
61
61
|
var _d = (0, react_1.useState)(false), videoLoaded = _d[0], setVideoLoaded = _d[1];
|
|
62
62
|
var onLoadedMetadata = function () {
|
|
63
|
-
var video = videoRef.current;
|
|
64
|
-
if (!video || isEditMode) {
|
|
65
|
-
return;
|
|
66
|
-
}
|
|
67
|
-
if (typeof CB_CONTENT_PROP_VIDEO_SPEC_STARTTIME === 'number') {
|
|
68
|
-
video.currentTime = CB_CONTENT_PROP_VIDEO_SPEC_STARTTIME;
|
|
69
|
-
}
|
|
70
63
|
setVideoLoaded(true);
|
|
71
64
|
};
|
|
72
65
|
(0, react_1.useEffect)(function () {
|
|
@@ -77,6 +70,9 @@ function VideoPlayer(props) {
|
|
|
77
70
|
var handleIntersection = function (entries) {
|
|
78
71
|
entries.forEach(function (entry) {
|
|
79
72
|
if (entry.isIntersecting) {
|
|
73
|
+
if (typeof CB_CONTENT_PROP_VIDEO_SPEC_STARTTIME === 'number') {
|
|
74
|
+
video.currentTime = CB_CONTENT_PROP_VIDEO_SPEC_STARTTIME;
|
|
75
|
+
}
|
|
80
76
|
video.muted = true;
|
|
81
77
|
video.play().catch(function (err) {
|
|
82
78
|
// eslint-disable-next-line no-console
|
package/package.json
CHANGED