stormcloud-video-player 0.8.35 → 0.8.36

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
@@ -5311,6 +5311,7 @@ var AdConfigManager = /*#__PURE__*/ function() {
5311
5311
  ];
5312
5312
  case 4:
5313
5313
  data = _state.sent();
5314
+ this.applyMqttConfigFromResponse(data);
5314
5315
  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;
5315
5316
  if (imaPayload) {
5316
5317
  decodedPayload = imaPayload;
@@ -5344,6 +5345,20 @@ var AdConfigManager = /*#__PURE__*/ function() {
5344
5345
  }).call(this);
5345
5346
  }
5346
5347
  },
5348
+ {
5349
+ key: "applyMqttConfigFromResponse",
5350
+ value: function applyMqttConfigFromResponse(data) {
5351
+ var _data_response;
5352
+ var mqttConfig2 = (_data_response = data.response) === null || _data_response === void 0 ? void 0 : _data_response.mqtt_config;
5353
+ if (!mqttConfig2 || (typeof mqttConfig2 === "undefined" ? "undefined" : _type_of(mqttConfig2)) !== "object") {
5354
+ return;
5355
+ }
5356
+ applyMQTTConfig(mqttConfig2);
5357
+ if (this.debug) {
5358
+ console.log("[StormcloudVideoPlayer] Applied MQTT config from /ads/web:", mqttConfig2);
5359
+ }
5360
+ }
5361
+ },
5347
5362
  {
5348
5363
  key: "fetchAndParseVmap",
5349
5364
  value: function fetchAndParseVmap(vmapUrl) {