stormcloud-video-player 0.8.6 → 0.8.7

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.d.cts CHANGED
@@ -4174,6 +4174,7 @@ interface PalNonceOptions {
4174
4174
  sessionId?: string;
4175
4175
  adWillAutoPlay?: boolean;
4176
4176
  adWillPlayMuted?: boolean;
4177
+ playerVolume?: number;
4177
4178
  continuousPlayback?: boolean;
4178
4179
  }
4179
4180
  interface PalNonceManager {
package/lib/index.d.ts CHANGED
@@ -4174,6 +4174,7 @@ interface PalNonceOptions {
4174
4174
  sessionId?: string;
4175
4175
  adWillAutoPlay?: boolean;
4176
4176
  adWillPlayMuted?: boolean;
4177
+ playerVolume?: number;
4177
4178
  continuousPlayback?: boolean;
4178
4179
  }
4179
4180
  interface PalNonceManager {
package/lib/index.js CHANGED
@@ -1326,7 +1326,7 @@ function createPalNonceManager() {
1326
1326
  return {
1327
1327
  generateNonce: function generateNonce() {
1328
1328
  return _async_to_generator(function() {
1329
- var options, _options_adWillAutoPlay, _options_adWillPlayMuted, _options_continuousPlayback, loader, goog, request, manager, error;
1329
+ var options, _options_adWillAutoPlay, _options_adWillPlayMuted, _options_playerVolume, _options_continuousPlayback, loader, goog, request, manager, error;
1330
1330
  var _arguments = arguments;
1331
1331
  return _ts_generator(this, function(_state) {
1332
1332
  switch(_state.label){
@@ -1351,6 +1351,7 @@ function createPalNonceManager() {
1351
1351
  request = new goog.pal.NonceRequest();
1352
1352
  request.adWillAutoPlay = (_options_adWillAutoPlay = options.adWillAutoPlay) !== null && _options_adWillAutoPlay !== void 0 ? _options_adWillAutoPlay : true;
1353
1353
  request.adWillPlayMuted = (_options_adWillPlayMuted = options.adWillPlayMuted) !== null && _options_adWillPlayMuted !== void 0 ? _options_adWillPlayMuted : false;
1354
+ request.playerVolume = (_options_playerVolume = options.playerVolume) !== null && _options_playerVolume !== void 0 ? _options_playerVolume : request.adWillPlayMuted ? 0 : 1;
1354
1355
  request.continuousPlayback = (_options_continuousPlayback = options.continuousPlayback) !== null && _options_continuousPlayback !== void 0 ? _options_continuousPlayback : true;
1355
1356
  request.descriptionUrl = options.descriptionUrl || (typeof window !== "undefined" ? window.location.href : "");
1356
1357
  request.iconsSupported = true;
@@ -2798,7 +2799,8 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
2798
2799
  videoWidth: this.video.offsetWidth || this.video.clientWidth || 640,
2799
2800
  videoHeight: this.video.offsetHeight || this.video.clientHeight || 480,
2800
2801
  adWillAutoPlay: !!this.config.autoplay,
2801
- adWillPlayMuted: !!this.config.muted,
2802
+ adWillPlayMuted: true,
2803
+ playerVolume: 0,
2802
2804
  continuousPlayback: (_this_config_lowLatencyMode = this.config.lowLatencyMode) !== null && _this_config_lowLatencyMode !== void 0 ? _this_config_lowLatencyMode : false
2803
2805
  }).catch(function() {});
2804
2806
  fetchConsentSignals().then(function(signals) {