stormcloud-video-player 0.5.8 → 0.5.9
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 +8 -2
- package/lib/index.cjs.map +1 -1
- package/lib/index.js +8 -2
- package/lib/index.js.map +1 -1
- package/lib/player/StormcloudVideoPlayer.cjs +8 -2
- package/lib/player/StormcloudVideoPlayer.cjs.map +1 -1
- package/lib/players/HlsPlayer.cjs +8 -2
- package/lib/players/HlsPlayer.cjs.map +1 -1
- package/lib/players/index.cjs +8 -2
- package/lib/players/index.cjs.map +1 -1
- package/lib/ui/StormcloudVideoPlayer.cjs +8 -2
- package/lib/ui/StormcloudVideoPlayer.cjs.map +1 -1
- package/package.json +1 -1
|
@@ -3232,6 +3232,9 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
|
|
|
3232
3232
|
_this.activeAdRequestToken = null;
|
|
3233
3233
|
_this.showAds = false;
|
|
3234
3234
|
if (!_this.inAdBreak) {
|
|
3235
|
+
if (_this.config.debugAdTiming) {
|
|
3236
|
+
console.log("[StormcloudVideoPlayer] content_resume: break already ended (e.g. by CUE-IN or handleAdPodComplete), skipping next-ad path");
|
|
3237
|
+
}
|
|
3235
3238
|
return;
|
|
3236
3239
|
}
|
|
3237
3240
|
_this.consecutiveFailures = 0;
|
|
@@ -3244,6 +3247,9 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
|
|
|
3244
3247
|
if (remaining > 500) {
|
|
3245
3248
|
_this.tryNextAvailableAdWithRateLimit();
|
|
3246
3249
|
} else {
|
|
3250
|
+
if (_this.config.debugAdTiming) {
|
|
3251
|
+
console.log("[StormcloudVideoPlayer] content_resume: remaining time too low to try next ad, ending ad pod");
|
|
3252
|
+
}
|
|
3247
3253
|
_this.handleAdPodComplete();
|
|
3248
3254
|
}
|
|
3249
3255
|
});
|
|
@@ -3708,9 +3714,9 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
|
|
|
3708
3714
|
activeAdRequest: this.activeAdRequestToken !== null
|
|
3709
3715
|
});
|
|
3710
3716
|
}
|
|
3711
|
-
if (adPlaying || remaining >
|
|
3717
|
+
if (adPlaying || remaining > 500) {
|
|
3712
3718
|
if (this.config.debugAdTiming) {
|
|
3713
|
-
console.log("[StormcloudVideoPlayer] Ignoring premature SCTE-35 end marker - ads still active");
|
|
3719
|
+
console.log("[StormcloudVideoPlayer] Ignoring premature SCTE-35 end marker - ads still active or time remaining");
|
|
3714
3720
|
}
|
|
3715
3721
|
return;
|
|
3716
3722
|
}
|