stormcloud-video-player 0.8.21 → 0.8.23

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.
@@ -2228,6 +2228,13 @@ var AdBreakOrchestrator = /*#__PURE__*/ function() {
2228
2228
  this.host.video.volume = restoredVolume;
2229
2229
  }
2230
2230
  if (this.host.shouldContinueLiveStreamDuringAds()) {
2231
+ var liveSyncPos = this.host.getLiveSyncPosition();
2232
+ if (liveSyncPos != null && liveSyncPos > this.host.video.currentTime) {
2233
+ if (this.debug) {
2234
+ console.log("[StormcloudVideoPlayer] Live break end — snapping to live edge: ".concat(this.host.video.currentTime.toFixed(2), "s → ").concat(liveSyncPos.toFixed(2), "s"));
2235
+ }
2236
+ this.host.video.currentTime = liveSyncPos;
2237
+ }
2231
2238
  if (this.host.video.paused) {
2232
2239
  var _this_host_video_play;
2233
2240
  if (this.debug) console.log("[StormcloudVideoPlayer] Content video paused in live mode after ads, resuming playback");