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.
@@ -3176,6 +3176,12 @@ var StormcloudVideoPlayer = class {
3176
3176
  if (this.config.debugAdTiming) {
3177
3177
  console.log(`[CONTINUOUS-FETCH] \u{1F3AC} Playing next queued ad (${this.currentAdIndex + 1}/${this.totalAdsInBreak}, ${this.adRequestQueue.length} remaining in queue)`);
3178
3178
  }
3179
+ const currentMuted = this.video.muted;
3180
+ const currentVolume = this.video.volume;
3181
+ this.ima.updateOriginalMutedState(currentMuted, currentVolume);
3182
+ if (this.config.debugAdTiming) {
3183
+ console.log(`[CONTINUOUS-FETCH] \u{1F50A} Updated ad audio state: muted=${currentMuted}, volume=${currentVolume}`);
3184
+ }
3179
3185
  this.currentAdIndex++;
3180
3186
  this.successfulAdRequests.push(nextAdUrl);
3181
3187
  await this.playSingleAd(nextAdUrl).catch(() => {
@@ -3229,9 +3235,13 @@ var StormcloudVideoPlayer = class {
3229
3235
  this.isShowingPlaceholder = false;
3230
3236
  this.placeholderStartTimeMs = null;
3231
3237
  this.ima.hidePlaceholder();
3238
+ const currentMuted = this.video.muted;
3239
+ const currentVolume = this.video.volume;
3240
+ this.ima.updateOriginalMutedState(currentMuted, currentVolume);
3232
3241
  const nextAdUrl = this.adRequestQueue.shift();
3233
3242
  if (nextAdUrl) {
3234
3243
  this.currentAdIndex++;
3244
+ this.successfulAdRequests.push(nextAdUrl);
3235
3245
  await this.playSingleAd(nextAdUrl).catch(() => {
3236
3246
  this.tryNextAvailableAd();
3237
3247
  });