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.
@@ -3215,6 +3215,12 @@ var StormcloudVideoPlayer = class {
3215
3215
  if (this.config.debugAdTiming) {
3216
3216
  console.log(`[CONTINUOUS-FETCH] \u{1F3AC} Playing next queued ad (${this.currentAdIndex + 1}/${this.totalAdsInBreak}, ${this.adRequestQueue.length} remaining in queue)`);
3217
3217
  }
3218
+ const currentMuted = this.video.muted;
3219
+ const currentVolume = this.video.volume;
3220
+ this.ima.updateOriginalMutedState(currentMuted, currentVolume);
3221
+ if (this.config.debugAdTiming) {
3222
+ console.log(`[CONTINUOUS-FETCH] \u{1F50A} Updated ad audio state: muted=${currentMuted}, volume=${currentVolume}`);
3223
+ }
3218
3224
  this.currentAdIndex++;
3219
3225
  this.successfulAdRequests.push(nextAdUrl);
3220
3226
  await this.playSingleAd(nextAdUrl).catch(() => {
@@ -3268,9 +3274,13 @@ var StormcloudVideoPlayer = class {
3268
3274
  this.isShowingPlaceholder = false;
3269
3275
  this.placeholderStartTimeMs = null;
3270
3276
  this.ima.hidePlaceholder();
3277
+ const currentMuted = this.video.muted;
3278
+ const currentVolume = this.video.volume;
3279
+ this.ima.updateOriginalMutedState(currentMuted, currentVolume);
3271
3280
  const nextAdUrl = this.adRequestQueue.shift();
3272
3281
  if (nextAdUrl) {
3273
3282
  this.currentAdIndex++;
3283
+ this.successfulAdRequests.push(nextAdUrl);
3274
3284
  await this.playSingleAd(nextAdUrl).catch(() => {
3275
3285
  this.tryNextAvailableAd();
3276
3286
  });