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/dist/stormcloud-vp.min.js +1 -1
- package/lib/index.cjs +15 -0
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +20 -19
- package/lib/index.d.ts +20 -19
- package/lib/index.js +15 -0
- package/lib/index.js.map +1 -1
- package/lib/player/StormcloudVideoPlayer.cjs +18 -0
- package/lib/player/StormcloudVideoPlayer.cjs.map +1 -1
- package/lib/player/StormcloudVideoPlayer.d.cts +1 -0
- package/lib/players/HlsPlayer.cjs +18 -0
- package/lib/players/HlsPlayer.cjs.map +1 -1
- package/lib/players/index.cjs +18 -0
- package/lib/players/index.cjs.map +1 -1
- package/lib/ui/StormcloudVideoPlayer.cjs +18 -0
- package/lib/ui/StormcloudVideoPlayer.cjs.map +1 -1
- package/package.json +1 -1
package/lib/players/index.cjs
CHANGED
|
@@ -2478,6 +2478,9 @@ var DEFAULT_MQTT_CONFIG = {
|
|
|
2478
2478
|
qos: 1
|
|
2479
2479
|
};
|
|
2480
2480
|
var mqttConfig = _object_spread({}, DEFAULT_MQTT_CONFIG);
|
|
2481
|
+
function applyMQTTConfig(overrides) {
|
|
2482
|
+
Object.assign(mqttConfig, overrides);
|
|
2483
|
+
}
|
|
2481
2484
|
function isMQTTEnabled() {
|
|
2482
2485
|
return mqttConfig.enabled;
|
|
2483
2486
|
}
|
|
@@ -5452,6 +5455,20 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
|
|
|
5452
5455
|
return !!(this.config.isVmap && ((_this_config_vmapUrl = this.config.vmapUrl) === null || _this_config_vmapUrl === void 0 ? void 0 : _this_config_vmapUrl.trim()));
|
|
5453
5456
|
}
|
|
5454
5457
|
},
|
|
5458
|
+
{
|
|
5459
|
+
key: "applyMqttConfigFromResponse",
|
|
5460
|
+
value: function applyMqttConfigFromResponse(data) {
|
|
5461
|
+
var _data_response;
|
|
5462
|
+
var mqttConfig2 = (_data_response = data.response) === null || _data_response === void 0 ? void 0 : _data_response.mqtt_config;
|
|
5463
|
+
if (!mqttConfig2 || (typeof mqttConfig2 === "undefined" ? "undefined" : _type_of(mqttConfig2)) !== "object") {
|
|
5464
|
+
return;
|
|
5465
|
+
}
|
|
5466
|
+
applyMQTTConfig(mqttConfig2);
|
|
5467
|
+
if (this.config.debugAdTiming) {
|
|
5468
|
+
console.log("[StormcloudVideoPlayer] Applied MQTT config from /ads/web:", mqttConfig2);
|
|
5469
|
+
}
|
|
5470
|
+
}
|
|
5471
|
+
},
|
|
5455
5472
|
{
|
|
5456
5473
|
key: "fetchAdConfiguration",
|
|
5457
5474
|
value: function fetchAdConfiguration() {
|
|
@@ -5538,6 +5555,7 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
|
|
|
5538
5555
|
];
|
|
5539
5556
|
case 4:
|
|
5540
5557
|
data = _state.sent();
|
|
5558
|
+
this.applyMqttConfigFromResponse(data);
|
|
5541
5559
|
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;
|
|
5542
5560
|
if (imaPayload) {
|
|
5543
5561
|
this.apiVastTagUrl = decodeURIComponent(imaPayload);
|