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