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
package/lib/players/index.cjs
CHANGED
|
@@ -3282,6 +3282,9 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
|
|
|
3282
3282
|
_this.activeAdRequestToken = null;
|
|
3283
3283
|
_this.showAds = false;
|
|
3284
3284
|
if (!_this.inAdBreak) {
|
|
3285
|
+
if (_this.config.debugAdTiming) {
|
|
3286
|
+
console.log("[StormcloudVideoPlayer] content_resume: break already ended (e.g. by CUE-IN or handleAdPodComplete), skipping next-ad path");
|
|
3287
|
+
}
|
|
3285
3288
|
return;
|
|
3286
3289
|
}
|
|
3287
3290
|
_this.consecutiveFailures = 0;
|
|
@@ -3294,6 +3297,9 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
|
|
|
3294
3297
|
if (remaining > 500) {
|
|
3295
3298
|
_this.tryNextAvailableAdWithRateLimit();
|
|
3296
3299
|
} else {
|
|
3300
|
+
if (_this.config.debugAdTiming) {
|
|
3301
|
+
console.log("[StormcloudVideoPlayer] content_resume: remaining time too low to try next ad, ending ad pod");
|
|
3302
|
+
}
|
|
3297
3303
|
_this.handleAdPodComplete();
|
|
3298
3304
|
}
|
|
3299
3305
|
});
|
|
@@ -3758,9 +3764,9 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
|
|
|
3758
3764
|
activeAdRequest: this.activeAdRequestToken !== null
|
|
3759
3765
|
});
|
|
3760
3766
|
}
|
|
3761
|
-
if (adPlaying || remaining >
|
|
3767
|
+
if (adPlaying || remaining > 500) {
|
|
3762
3768
|
if (this.config.debugAdTiming) {
|
|
3763
|
-
console.log("[StormcloudVideoPlayer] Ignoring premature SCTE-35 end marker - ads still active");
|
|
3769
|
+
console.log("[StormcloudVideoPlayer] Ignoring premature SCTE-35 end marker - ads still active or time remaining");
|
|
3764
3770
|
}
|
|
3765
3771
|
return;
|
|
3766
3772
|
}
|