stormcloud-video-player 0.2.29 → 0.2.30
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 +13 -15
- package/lib/index.cjs.map +1 -1
- package/lib/index.js +13 -15
- package/lib/index.js.map +1 -1
- package/lib/player/StormcloudVideoPlayer.cjs +13 -15
- package/lib/player/StormcloudVideoPlayer.cjs.map +1 -1
- package/lib/players/HlsPlayer.cjs +13 -15
- package/lib/players/HlsPlayer.cjs.map +1 -1
- package/lib/players/index.cjs +13 -15
- package/lib/players/index.cjs.map +1 -1
- package/lib/sdk/ima.cjs +13 -15
- package/lib/sdk/ima.cjs.map +1 -1
- package/lib/ui/StormcloudVideoPlayer.cjs +13 -15
- package/lib/ui/StormcloudVideoPlayer.cjs.map +1 -1
- package/package.json +1 -1
|
@@ -650,27 +650,25 @@ function createImaController(video, options) {
|
|
|
650
650
|
console.log("[IMA] Content resume requested");
|
|
651
651
|
adPlaying = false;
|
|
652
652
|
setAdPlayingFlag(false);
|
|
653
|
-
showContentVideo();
|
|
654
653
|
emit("content_resume");
|
|
655
|
-
setTimeout(() => {
|
|
656
|
-
const stillInPod = video.dataset.stormcloudAdPlaying === "true";
|
|
657
|
-
if (stillInPod) {
|
|
658
|
-
console.log(
|
|
659
|
-
"[IMA] Still in ad pod - keeping ad container visible"
|
|
660
|
-
);
|
|
661
|
-
if (adContainerEl) {
|
|
662
|
-
adContainerEl.style.display = "flex";
|
|
663
|
-
adContainerEl.style.pointerEvents = "auto";
|
|
664
|
-
}
|
|
665
|
-
hideContentVideo();
|
|
666
|
-
}
|
|
667
|
-
}, 50);
|
|
668
654
|
}
|
|
669
655
|
);
|
|
670
656
|
adsManager.addEventListener(AdEvent.ALL_ADS_COMPLETED, () => {
|
|
671
|
-
console.log("[IMA] All ads completed -
|
|
657
|
+
console.log("[IMA] All ads completed - restoring content");
|
|
672
658
|
adPlaying = false;
|
|
673
659
|
setAdPlayingFlag(false);
|
|
660
|
+
showContentVideo();
|
|
661
|
+
if (adContainerEl) {
|
|
662
|
+
adContainerEl.style.pointerEvents = "none";
|
|
663
|
+
adContainerEl.style.display = "none";
|
|
664
|
+
console.log("[IMA] Ad container hidden");
|
|
665
|
+
}
|
|
666
|
+
if (!(options == null ? void 0 : options.continueLiveStreamDuringAds) && video.paused) {
|
|
667
|
+
console.log("[IMA] Resuming content video playback");
|
|
668
|
+
video.play().catch((e) => {
|
|
669
|
+
console.warn("[IMA] Failed to resume content video:", e);
|
|
670
|
+
});
|
|
671
|
+
}
|
|
674
672
|
emit("all_ads_completed");
|
|
675
673
|
});
|
|
676
674
|
console.log("[IMA] Ads manager event listeners attached");
|