stormcloud-video-player 0.8.58 → 0.8.59
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 +12440 -0
- package/lib/index.cjs.map +1 -0
- package/lib/index.d.cts +4032 -0
- package/lib/index.d.ts +4032 -0
- package/lib/index.js +12217 -0
- package/lib/index.js.map +1 -0
- package/lib/player/AdBreakOrchestrator.d.cts +1 -1
- package/lib/player/AdConfigManager.cjs +9 -3
- package/lib/player/AdConfigManager.cjs.map +1 -1
- package/lib/player/AdConfigManager.d.cts +1 -1
- package/lib/player/AdTimingService.d.cts +1 -1
- package/lib/player/HlsEngine.d.cts +1 -1
- package/lib/player/PlayerControls.d.cts +1 -1
- package/lib/player/Scte35CueManager.d.cts +1 -1
- package/lib/player/Scte35Parser.d.cts +1 -1
- package/lib/player/StormcloudVideoPlayer.cjs +9 -3
- package/lib/player/StormcloudVideoPlayer.cjs.map +1 -1
- package/lib/player/StormcloudVideoPlayer.d.cts +1 -1
- package/lib/player/playerTypes.d.cts +1 -1
- package/lib/players/HlsPlayer.cjs +9 -3
- package/lib/players/HlsPlayer.cjs.map +1 -1
- package/lib/players/HlsPlayer.d.cts +1 -1
- package/lib/players/index.cjs +9 -3
- package/lib/players/index.cjs.map +1 -1
- package/lib/sdk/hlsAdPlayer.d.cts +1 -1
- package/lib/{types-cTqIKw_D.d.cts → types-52ASml2N.d.cts} +1 -0
- package/lib/ui/StormcloudVideoPlayer.cjs +13 -5
- 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/lib/utils/vastMacros.cjs +3 -0
- package/lib/utils/vastMacros.cjs.map +1 -1
- package/lib/utils/vastMacros.d.cts +1 -0
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as Scte35Marker, a as StormcloudVideoPlayerConfig, A as AdController } from '../types-
|
|
1
|
+
import { S as Scte35Marker, a as StormcloudVideoPlayerConfig, A as AdController } from '../types-52ASml2N.cjs';
|
|
2
2
|
import { AdTimingService } from './AdTimingService.cjs';
|
|
3
3
|
import { AdConfigManager } from './AdConfigManager.cjs';
|
|
4
4
|
import { Scte35CueManager } from './Scte35CueManager.cjs';
|
|
@@ -1154,6 +1154,9 @@ function applyVastMacros(baseUrl, ctx) {
|
|
|
1154
1154
|
if (ctx.adTest) {
|
|
1155
1155
|
params.set("adtest", "on");
|
|
1156
1156
|
}
|
|
1157
|
+
if (ctx.programTitle) {
|
|
1158
|
+
params.set("ct_ti", ctx.programTitle);
|
|
1159
|
+
}
|
|
1157
1160
|
var staleKeys = [];
|
|
1158
1161
|
params.forEach(function(value, key) {
|
|
1159
1162
|
if (isMacroPlaceholder2(value)) {
|
|
@@ -2187,7 +2190,7 @@ var AdConfigManager = /*#__PURE__*/ function() {
|
|
|
2187
2190
|
var _podParams_maxDurationMs;
|
|
2188
2191
|
var adWillPlayMuted = inAdBreak ? adPlayer.getOriginalMutedState() : this.video.muted;
|
|
2189
2192
|
var envSignals = resolveVastEnvironmentSignals(!!this.config.ctvAdRequest);
|
|
2190
|
-
var urlWithMacros = applyVastMacros(baseUrl, {
|
|
2193
|
+
var urlWithMacros = applyVastMacros(baseUrl, _object_spread_props(_object_spread({
|
|
2191
2194
|
correlator: this.viewCorrelator,
|
|
2192
2195
|
streamCorrelator: this.streamCorrelator,
|
|
2193
2196
|
pod: this.podCounter > 0 ? this.podCounter : void 0,
|
|
@@ -2203,9 +2206,12 @@ var AdConfigManager = /*#__PURE__*/ function() {
|
|
|
2203
2206
|
deviceIdType: envSignals.deviceIdType,
|
|
2204
2207
|
limitAdTracking: envSignals.limitAdTracking,
|
|
2205
2208
|
deviceTypeHint: envSignals.deviceTypeHint,
|
|
2206
|
-
adTest: this.config.adTest
|
|
2209
|
+
adTest: this.config.adTest
|
|
2210
|
+
}, this.config.programTitle ? {
|
|
2211
|
+
programTitle: this.config.programTitle
|
|
2212
|
+
} : {}), {
|
|
2207
2213
|
consent: this.consentSignals
|
|
2208
|
-
});
|
|
2214
|
+
}));
|
|
2209
2215
|
var finalUrl = palNonce.injectNonce(urlWithMacros);
|
|
2210
2216
|
console.log("[StormcloudVideoPlayer] Resolved optimized-pod request URL (pod=".concat(this.podCounter, ", pmad=").concat(podParams.maxAds, ", pmnd=").concat(podParams.minDurationMs, ", pmxd=").concat((_podParams_maxDurationMs = podParams.maxDurationMs) !== null && _podParams_maxDurationMs !== void 0 ? _podParams_maxDurationMs : "?", "):"), finalUrl);
|
|
2211
2217
|
return finalUrl;
|