stormcloud-video-player 0.8.17 → 0.8.19
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/README.md +67 -83
- package/dist/stormcloud-vp.min.js +1 -1
- package/lib/index.cjs +859 -585
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +859 -585
- package/lib/index.js.map +1 -1
- package/lib/player/AdBreakOrchestrator.cjs +11 -11
- package/lib/player/AdBreakOrchestrator.cjs.map +1 -1
- package/lib/player/AdBreakOrchestrator.d.cts +3 -3
- package/lib/player/{VmapManager.cjs → AdConfigManager.cjs} +503 -214
- package/lib/player/AdConfigManager.cjs.map +1 -0
- package/lib/player/{VmapManager.d.cts → AdConfigManager.d.cts} +2 -2
- package/lib/player/StormcloudVideoPlayer.cjs +635 -346
- package/lib/player/StormcloudVideoPlayer.cjs.map +1 -1
- package/lib/player/StormcloudVideoPlayer.d.cts +1 -1
- package/lib/players/HlsPlayer.cjs +635 -346
- package/lib/players/HlsPlayer.cjs.map +1 -1
- package/lib/players/index.cjs +635 -346
- package/lib/players/index.cjs.map +1 -1
- package/lib/ui/StormcloudVideoPlayer.cjs +859 -585
- package/lib/ui/StormcloudVideoPlayer.cjs.map +1 -1
- package/lib/utils/ctvVastSignals.cjs +92 -33
- package/lib/utils/ctvVastSignals.cjs.map +1 -1
- package/lib/utils/ctvVastSignals.d.cts +1 -13
- package/lib/utils/vastEnvironmentSignals.cjs +439 -0
- package/lib/utils/vastEnvironmentSignals.cjs.map +1 -0
- package/lib/utils/vastEnvironmentSignals.d.cts +16 -0
- package/lib/utils/vastMacros.cjs +299 -25
- package/lib/utils/vastMacros.cjs.map +1 -1
- package/lib/utils/vastMacros.d.cts +3 -1
- package/package.json +1 -1
- package/lib/player/VmapManager.cjs.map +0 -1
|
@@ -797,7 +797,7 @@ function getAdAudioVolume(adPlayer) {
|
|
|
797
797
|
}
|
|
798
798
|
// src/player/AdBreakOrchestrator.ts
|
|
799
799
|
var AdBreakOrchestrator = /*#__PURE__*/ function() {
|
|
800
|
-
function AdBreakOrchestrator(host, timing, preloadPool,
|
|
800
|
+
function AdBreakOrchestrator(host, timing, preloadPool, adConfig, cueManager, placeholder) {
|
|
801
801
|
_class_call_check(this, AdBreakOrchestrator);
|
|
802
802
|
this.inAdBreak = false;
|
|
803
803
|
this.showAds = false;
|
|
@@ -812,7 +812,7 @@ var AdBreakOrchestrator = /*#__PURE__*/ function() {
|
|
|
812
812
|
this.host = host;
|
|
813
813
|
this.timing = timing;
|
|
814
814
|
this.preloadPool = preloadPool;
|
|
815
|
-
this.
|
|
815
|
+
this.adConfig = adConfig;
|
|
816
816
|
this.cueManager = cueManager;
|
|
817
817
|
this.placeholder = placeholder;
|
|
818
818
|
}
|
|
@@ -978,7 +978,7 @@ var AdBreakOrchestrator = /*#__PURE__*/ function() {
|
|
|
978
978
|
}
|
|
979
979
|
this.pendingAdBreak = null;
|
|
980
980
|
this.cueManager.pendingScte35CueKey = void 0;
|
|
981
|
-
this.
|
|
981
|
+
this.adConfig.podAssignedByPrefetch = false;
|
|
982
982
|
}
|
|
983
983
|
},
|
|
984
984
|
{
|
|
@@ -992,15 +992,15 @@ var AdBreakOrchestrator = /*#__PURE__*/ function() {
|
|
|
992
992
|
return _ts_generator(this, function(_state) {
|
|
993
993
|
switch(_state.label){
|
|
994
994
|
case 0:
|
|
995
|
-
scheduled = this.
|
|
995
|
+
scheduled = this.adConfig.findCurrentOrNextBreak(this.host.video.currentTime * 1e3);
|
|
996
996
|
if (scheduled) {
|
|
997
|
-
this.
|
|
997
|
+
this.adConfig.consumedVmapBreakIds.add(this.adConfig.getAdBreakKey(scheduled));
|
|
998
998
|
}
|
|
999
|
-
tags = this.
|
|
999
|
+
tags = this.adConfig.selectVastTagsForBreak(scheduled);
|
|
1000
1000
|
if (tags && tags.length > 0 && tags[0]) {
|
|
1001
1001
|
baseVastUrl = tags[0];
|
|
1002
|
-
} else if (this.
|
|
1003
|
-
baseVastUrl = this.
|
|
1002
|
+
} else if (this.adConfig.apiVastTagUrl) {
|
|
1003
|
+
baseVastUrl = this.adConfig.apiVastTagUrl;
|
|
1004
1004
|
} else {
|
|
1005
1005
|
this.clearPendingAdBreak();
|
|
1006
1006
|
return [
|
|
@@ -1018,10 +1018,10 @@ var AdBreakOrchestrator = /*#__PURE__*/ function() {
|
|
|
1018
1018
|
this.continuousFetchingActive = true;
|
|
1019
1019
|
this.isShowingPlaceholder = false;
|
|
1020
1020
|
this.timing.totalAdRequestsInBreak = 0;
|
|
1021
|
-
if (this.
|
|
1022
|
-
this.
|
|
1021
|
+
if (this.adConfig.podAssignedByPrefetch) {
|
|
1022
|
+
this.adConfig.podAssignedByPrefetch = false;
|
|
1023
1023
|
} else {
|
|
1024
|
-
this.
|
|
1024
|
+
this.adConfig.beginNewAdPod();
|
|
1025
1025
|
}
|
|
1026
1026
|
currentMuted = this.host.video.muted;
|
|
1027
1027
|
currentVolume = this.host.video.volume;
|