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.
@@ -1392,7 +1392,7 @@ function createPalNonceManager() {
1392
1392
  return {
1393
1393
  generateNonce: function generateNonce() {
1394
1394
  return _async_to_generator(function() {
1395
- var options, _options_adWillAutoPlay, _options_adWillPlayMuted, _options_continuousPlayback, loader, goog, request, manager, error;
1395
+ var options, _options_adWillAutoPlay, _options_adWillPlayMuted, _options_playerVolume, _options_continuousPlayback, loader, goog, request, manager, error;
1396
1396
  var _arguments = arguments;
1397
1397
  return _ts_generator(this, function(_state) {
1398
1398
  switch(_state.label){
@@ -1417,6 +1417,7 @@ function createPalNonceManager() {
1417
1417
  request = new goog.pal.NonceRequest();
1418
1418
  request.adWillAutoPlay = (_options_adWillAutoPlay = options.adWillAutoPlay) !== null && _options_adWillAutoPlay !== void 0 ? _options_adWillAutoPlay : true;
1419
1419
  request.adWillPlayMuted = (_options_adWillPlayMuted = options.adWillPlayMuted) !== null && _options_adWillPlayMuted !== void 0 ? _options_adWillPlayMuted : false;
1420
+ request.playerVolume = (_options_playerVolume = options.playerVolume) !== null && _options_playerVolume !== void 0 ? _options_playerVolume : request.adWillPlayMuted ? 0 : 1;
1420
1421
  request.continuousPlayback = (_options_continuousPlayback = options.continuousPlayback) !== null && _options_continuousPlayback !== void 0 ? _options_continuousPlayback : true;
1421
1422
  request.descriptionUrl = options.descriptionUrl || (typeof window !== "undefined" ? window.location.href : "");
1422
1423
  request.iconsSupported = true;
@@ -2814,7 +2815,8 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
2814
2815
  videoWidth: this.video.offsetWidth || this.video.clientWidth || 640,
2815
2816
  videoHeight: this.video.offsetHeight || this.video.clientHeight || 480,
2816
2817
  adWillAutoPlay: !!this.config.autoplay,
2817
- adWillPlayMuted: !!this.config.muted,
2818
+ adWillPlayMuted: true,
2819
+ playerVolume: 0,
2818
2820
  continuousPlayback: (_this_config_lowLatencyMode = this.config.lowLatencyMode) !== null && _this_config_lowLatencyMode !== void 0 ? _this_config_lowLatencyMode : false
2819
2821
  }).catch(function() {});
2820
2822
  fetchConsentSignals().then(function(signals) {