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.cjs CHANGED
@@ -1540,7 +1540,7 @@ function createPalNonceManager() {
1540
1540
  return {
1541
1541
  generateNonce: function generateNonce() {
1542
1542
  return _async_to_generator(function() {
1543
- var options, _options_adWillAutoPlay, _options_adWillPlayMuted, _options_continuousPlayback, loader, goog, request, manager, error;
1543
+ var options, _options_adWillAutoPlay, _options_adWillPlayMuted, _options_playerVolume, _options_continuousPlayback, loader, goog, request, manager, error;
1544
1544
  var _arguments = arguments;
1545
1545
  return _ts_generator(this, function(_state) {
1546
1546
  switch(_state.label){
@@ -1565,6 +1565,7 @@ function createPalNonceManager() {
1565
1565
  request = new goog.pal.NonceRequest();
1566
1566
  request.adWillAutoPlay = (_options_adWillAutoPlay = options.adWillAutoPlay) !== null && _options_adWillAutoPlay !== void 0 ? _options_adWillAutoPlay : true;
1567
1567
  request.adWillPlayMuted = (_options_adWillPlayMuted = options.adWillPlayMuted) !== null && _options_adWillPlayMuted !== void 0 ? _options_adWillPlayMuted : false;
1568
+ request.playerVolume = (_options_playerVolume = options.playerVolume) !== null && _options_playerVolume !== void 0 ? _options_playerVolume : request.adWillPlayMuted ? 0 : 1;
1568
1569
  request.continuousPlayback = (_options_continuousPlayback = options.continuousPlayback) !== null && _options_continuousPlayback !== void 0 ? _options_continuousPlayback : true;
1569
1570
  request.descriptionUrl = options.descriptionUrl || (typeof window !== "undefined" ? window.location.href : "");
1570
1571
  request.iconsSupported = true;
@@ -3009,7 +3010,8 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
3009
3010
  videoWidth: this.video.offsetWidth || this.video.clientWidth || 640,
3010
3011
  videoHeight: this.video.offsetHeight || this.video.clientHeight || 480,
3011
3012
  adWillAutoPlay: !!this.config.autoplay,
3012
- adWillPlayMuted: !!this.config.muted,
3013
+ adWillPlayMuted: true,
3014
+ playerVolume: 0,
3013
3015
  continuousPlayback: (_this_config_lowLatencyMode = this.config.lowLatencyMode) !== null && _this_config_lowLatencyMode !== void 0 ? _this_config_lowLatencyMode : false
3014
3016
  }).catch(function() {});
3015
3017
  fetchConsentSignals().then(function(signals) {