stormcloud-video-player 0.4.0 → 0.4.1

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.
@@ -390,6 +390,7 @@ function createAdStormPlayer(contentVideo, options) {
390
390
  var adContainerEl;
391
391
  var currentAd;
392
392
  var destroyed = false;
393
+ var allowNativeHls = false;
393
394
  var trackingFired = {
394
395
  impression: false,
395
396
  start: false,
@@ -847,7 +848,9 @@ function createAdStormPlayer(contentVideo, options) {
847
848
  }, 300);
848
849
  contentVideo.muted = true;
849
850
  contentVideo.volume = 0;
850
- contentVideo.pause();
851
+ if (allowNativeHls) {
852
+ contentVideo.pause();
853
+ }
851
854
  adPlaying = true;
852
855
  setAdPlayingFlag(true);
853
856
  if (adVideoElement) {
@@ -1023,6 +1026,10 @@ function createAdStormPlayer(contentVideo, options) {
1023
1026
  }
1024
1027
  }, 300);
1025
1028
  }
1029
+ },
1030
+ setAllowNativeHls: function setAllowNativeHls(value) {
1031
+ allowNativeHls = value;
1032
+ log("allowNativeHls set to: ".concat(value));
1026
1033
  }
1027
1034
  };
1028
1035
  }
@@ -1455,6 +1462,7 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
1455
1462
  });
1456
1463
  }
1457
1464
  this.adPlayer.initialize();
1465
+ this.adPlayer.setAllowNativeHls(!!this.config.allowNativeHls);
1458
1466
  if (!this.config.autoplay) return [
1459
1467
  3,
1460
1468
  2
@@ -1509,6 +1517,7 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
1509
1517
  });
1510
1518
  }
1511
1519
  this.adPlayer.initialize();
1520
+ this.adPlayer.setAllowNativeHls(!!this.config.allowNativeHls);
1512
1521
  this.bufferedSegmentsCount = 0;
1513
1522
  this.hasInitialBufferCompleted = false;
1514
1523
  this.shouldAutoplayAfterBuffering = !!this.config.autoplay;