stormcloud-video-player 0.7.35 → 0.7.36
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/stormcloud-vp.min.js +1 -1
- package/lib/index.cjs +12 -7
- package/lib/index.cjs.map +1 -1
- package/lib/index.js +12 -7
- package/lib/index.js.map +1 -1
- package/lib/ui/StormcloudVideoPlayer.cjs +12 -7
- package/lib/ui/StormcloudVideoPlayer.cjs.map +1 -1
- package/package.json +1 -1
package/lib/index.cjs
CHANGED
|
@@ -8067,15 +8067,20 @@ var StormcloudVideoPlayerComponent = import_react2.default.memo(function(props)
|
|
|
8067
8067
|
return;
|
|
8068
8068
|
}
|
|
8069
8069
|
var cancelled = false;
|
|
8070
|
-
|
|
8071
|
-
|
|
8072
|
-
|
|
8073
|
-
|
|
8074
|
-
|
|
8075
|
-
|
|
8076
|
-
|
|
8070
|
+
var loadOverlays = function loadOverlays() {
|
|
8071
|
+
fetchProjectOverlays(swirlProjectId).then(function(data) {
|
|
8072
|
+
if (!cancelled) setOverlays(data);
|
|
8073
|
+
}).catch(function(err) {
|
|
8074
|
+
if (!cancelled) {
|
|
8075
|
+
console.warn("[StormcloudVideoPlayer] Failed to fetch overlays:", err);
|
|
8076
|
+
}
|
|
8077
|
+
});
|
|
8078
|
+
};
|
|
8079
|
+
loadOverlays();
|
|
8080
|
+
var interval = window.setInterval(loadOverlays, 25e3);
|
|
8077
8081
|
return function() {
|
|
8078
8082
|
cancelled = true;
|
|
8083
|
+
clearInterval(interval);
|
|
8079
8084
|
};
|
|
8080
8085
|
}, [
|
|
8081
8086
|
swirlProjectId,
|