stormcloud-video-player 0.7.26 → 0.7.28

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.
@@ -3286,6 +3286,9 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
3286
3286
  }
3287
3287
  _this.adLayer.cancelPreload(token);
3288
3288
  } else {
3289
+ _this.video.style.transition = "none";
3290
+ _this.video.style.opacity = "0";
3291
+ _this.video.style.visibility = "hidden";
3289
3292
  if (!_this.config.singlePipelineMode) {
3290
3293
  _this.showPlaceholderLayer();
3291
3294
  }
@@ -3312,6 +3315,9 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
3312
3315
  console.log("[StormcloudVideoPlayer] content_resume: skip pending bids, only", remainingNow1, "ms left");
3313
3316
  }
3314
3317
  } else {
3318
+ _this.video.style.transition = "none";
3319
+ _this.video.style.opacity = "0";
3320
+ _this.video.style.visibility = "hidden";
3315
3321
  if (!_this.config.singlePipelineMode) {
3316
3322
  _this.showPlaceholderLayer();
3317
3323
  }
@@ -3341,17 +3347,10 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
3341
3347
  _this.showPlaceholderLayer();
3342
3348
  _this.adLayer.showPlaceholder();
3343
3349
  } else {
3344
- _this.adLayer.hidePlaceholder();
3345
- if (_this.video.muted !== breakMuted) {
3346
- _this.video.muted = breakMuted;
3347
- }
3348
- if (Math.abs(_this.video.volume - breakVolume) > 0.01) {
3349
- _this.video.volume = breakVolume;
3350
- }
3351
- if (_this.video.paused) {
3352
- var _this_video_play;
3353
- (_this_video_play = _this.video.play()) === null || _this_video_play === void 0 ? void 0 : _this_video_play.catch(function() {});
3354
- }
3350
+ _this.video.style.transition = "none";
3351
+ _this.video.style.opacity = "0";
3352
+ _this.video.style.visibility = "hidden";
3353
+ _this.adLayer.showPlaceholder();
3355
3354
  }
3356
3355
  _this.continuousFetchingActive = true;
3357
3356
  _this.startContinuousFetchLoop();
@@ -3563,6 +3562,12 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
3563
3562
  return this.showAds;
3564
3563
  }
3565
3564
  },
3565
+ {
3566
+ key: "isInAdBreak",
3567
+ value: function isInAdBreak() {
3568
+ return this.inAdBreak;
3569
+ }
3570
+ },
3566
3571
  {
3567
3572
  key: "initializeAdLayer",
3568
3573
  value: function initializeAdLayer() {