stormcloud-video-player 0.3.65 → 0.3.66

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
@@ -5659,6 +5659,20 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
5659
5659
  return !!(this.config.isVmap && ((_this_config_vmapUrl = this.config.vmapUrl) === null || _this_config_vmapUrl === void 0 ? void 0 : _this_config_vmapUrl.trim()));
5660
5660
  }
5661
5661
  },
5662
+ {
5663
+ key: "applyMqttConfigFromResponse",
5664
+ value: function applyMqttConfigFromResponse(data) {
5665
+ var _data_response;
5666
+ var mqttConfig2 = (_data_response = data.response) === null || _data_response === void 0 ? void 0 : _data_response.mqtt_config;
5667
+ if (!mqttConfig2 || (typeof mqttConfig2 === "undefined" ? "undefined" : _type_of(mqttConfig2)) !== "object") {
5668
+ return;
5669
+ }
5670
+ applyMQTTConfig(mqttConfig2);
5671
+ if (this.config.debugAdTiming) {
5672
+ console.log("[StormcloudVideoPlayer] Applied MQTT config from /ads/web:", mqttConfig2);
5673
+ }
5674
+ }
5675
+ },
5662
5676
  {
5663
5677
  key: "fetchAdConfiguration",
5664
5678
  value: function fetchAdConfiguration() {
@@ -5745,6 +5759,7 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
5745
5759
  ];
5746
5760
  case 4:
5747
5761
  data = _state.sent();
5762
+ this.applyMqttConfigFromResponse(data);
5748
5763
  imaPayload = (_data_response = data.response) === null || _data_response === void 0 ? void 0 : (_data_response_ima = _data_response.ima) === null || _data_response_ima === void 0 ? void 0 : (_data_response_ima_publisherdeskima = _data_response_ima["publisherdesk.ima"]) === null || _data_response_ima_publisherdeskima === void 0 ? void 0 : _data_response_ima_publisherdeskima.payload;
5749
5764
  if (imaPayload) {
5750
5765
  this.apiVastTagUrl = decodeURIComponent(imaPayload);