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/lib/index.cjs CHANGED
@@ -3240,6 +3240,12 @@ var StormcloudVideoPlayer = class {
3240
3240
  if (this.config.debugAdTiming) {
3241
3241
  console.log(`[CONTINUOUS-FETCH] \u{1F3AC} Playing next queued ad (${this.currentAdIndex + 1}/${this.totalAdsInBreak}, ${this.adRequestQueue.length} remaining in queue)`);
3242
3242
  }
3243
+ const currentMuted = this.video.muted;
3244
+ const currentVolume = this.video.volume;
3245
+ this.ima.updateOriginalMutedState(currentMuted, currentVolume);
3246
+ if (this.config.debugAdTiming) {
3247
+ console.log(`[CONTINUOUS-FETCH] \u{1F50A} Updated ad audio state: muted=${currentMuted}, volume=${currentVolume}`);
3248
+ }
3243
3249
  this.currentAdIndex++;
3244
3250
  this.successfulAdRequests.push(nextAdUrl);
3245
3251
  await this.playSingleAd(nextAdUrl).catch(() => {
@@ -3293,9 +3299,13 @@ var StormcloudVideoPlayer = class {
3293
3299
  this.isShowingPlaceholder = false;
3294
3300
  this.placeholderStartTimeMs = null;
3295
3301
  this.ima.hidePlaceholder();
3302
+ const currentMuted = this.video.muted;
3303
+ const currentVolume = this.video.volume;
3304
+ this.ima.updateOriginalMutedState(currentMuted, currentVolume);
3296
3305
  const nextAdUrl = this.adRequestQueue.shift();
3297
3306
  if (nextAdUrl) {
3298
3307
  this.currentAdIndex++;
3308
+ this.successfulAdRequests.push(nextAdUrl);
3299
3309
  await this.playSingleAd(nextAdUrl).catch(() => {
3300
3310
  this.tryNextAvailableAd();
3301
3311
  });