stormcloud-video-player 0.3.11 → 0.3.12
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 +10 -0
- package/lib/index.cjs.map +1 -1
- package/lib/index.js +10 -0
- package/lib/index.js.map +1 -1
- package/lib/player/StormcloudVideoPlayer.cjs +10 -0
- package/lib/player/StormcloudVideoPlayer.cjs.map +1 -1
- package/lib/players/HlsPlayer.cjs +10 -0
- package/lib/players/HlsPlayer.cjs.map +1 -1
- package/lib/players/index.cjs +10 -0
- package/lib/players/index.cjs.map +1 -1
- package/lib/ui/StormcloudVideoPlayer.cjs +10 -0
- package/lib/ui/StormcloudVideoPlayer.cjs.map +1 -1
- package/package.json +1 -1
|
@@ -3173,6 +3173,12 @@ var StormcloudVideoPlayer = class {
|
|
|
3173
3173
|
if (this.config.debugAdTiming) {
|
|
3174
3174
|
console.log(`[CONTINUOUS-FETCH] \u{1F3AC} Playing next queued ad (${this.currentAdIndex + 1}/${this.totalAdsInBreak}, ${this.adRequestQueue.length} remaining in queue)`);
|
|
3175
3175
|
}
|
|
3176
|
+
const currentMuted = this.video.muted;
|
|
3177
|
+
const currentVolume = this.video.volume;
|
|
3178
|
+
this.ima.updateOriginalMutedState(currentMuted, currentVolume);
|
|
3179
|
+
if (this.config.debugAdTiming) {
|
|
3180
|
+
console.log(`[CONTINUOUS-FETCH] \u{1F50A} Updated ad audio state: muted=${currentMuted}, volume=${currentVolume}`);
|
|
3181
|
+
}
|
|
3176
3182
|
this.currentAdIndex++;
|
|
3177
3183
|
this.successfulAdRequests.push(nextAdUrl);
|
|
3178
3184
|
await this.playSingleAd(nextAdUrl).catch(() => {
|
|
@@ -3226,9 +3232,13 @@ var StormcloudVideoPlayer = class {
|
|
|
3226
3232
|
this.isShowingPlaceholder = false;
|
|
3227
3233
|
this.placeholderStartTimeMs = null;
|
|
3228
3234
|
this.ima.hidePlaceholder();
|
|
3235
|
+
const currentMuted = this.video.muted;
|
|
3236
|
+
const currentVolume = this.video.volume;
|
|
3237
|
+
this.ima.updateOriginalMutedState(currentMuted, currentVolume);
|
|
3229
3238
|
const nextAdUrl = this.adRequestQueue.shift();
|
|
3230
3239
|
if (nextAdUrl) {
|
|
3231
3240
|
this.currentAdIndex++;
|
|
3241
|
+
this.successfulAdRequests.push(nextAdUrl);
|
|
3232
3242
|
await this.playSingleAd(nextAdUrl).catch(() => {
|
|
3233
3243
|
this.tryNextAvailableAd();
|
|
3234
3244
|
});
|