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.
- package/dist/stormcloud-vp.min.js +1 -1
- package/lib/index.cjs +14 -1
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +1 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +14 -1
- package/lib/index.js.map +1 -1
- package/lib/player/StormcloudVideoPlayer.cjs +10 -1
- package/lib/player/StormcloudVideoPlayer.cjs.map +1 -1
- package/lib/player/StormcloudVideoPlayer.d.cts +1 -1
- package/lib/players/HlsPlayer.cjs +10 -1
- package/lib/players/HlsPlayer.cjs.map +1 -1
- package/lib/players/HlsPlayer.d.cts +1 -1
- package/lib/players/index.cjs +10 -1
- package/lib/players/index.cjs.map +1 -1
- package/lib/sdk/adstormPlayer.cjs +8 -1
- package/lib/sdk/adstormPlayer.cjs.map +1 -1
- package/lib/sdk/adstormPlayer.d.cts +1 -1
- package/lib/sdk/hlsAdPlayer.cjs +4 -0
- package/lib/sdk/hlsAdPlayer.cjs.map +1 -1
- package/lib/sdk/hlsAdPlayer.d.cts +1 -1
- package/lib/{types-Ca4ZDaWw.d.cts → types-2vzNGNdf.d.cts} +1 -0
- package/lib/ui/StormcloudVideoPlayer.cjs +10 -1
- package/lib/ui/StormcloudVideoPlayer.cjs.map +1 -1
- package/lib/ui/StormcloudVideoPlayer.d.cts +1 -1
- package/lib/utils/tracking.d.cts +1 -1
- package/package.json +1 -1
|
@@ -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
|
-
|
|
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;
|