stormcloud-video-player 0.8.39 → 0.8.41

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.
@@ -2018,10 +2018,19 @@ function openConnection() {
2018
2018
  password: mqttConfig.password,
2019
2019
  keepalive: KEEPALIVE_SECONDS,
2020
2020
  clean: true,
2021
+ // Disable MQTT.js internal reconnect; we manage reconnection ourselves.
2021
2022
  reconnectPeriod: 0,
2022
2023
  connectTimeout: CONNECT_TIMEOUT_MS,
2023
2024
  queueQoSZero: false,
2024
- reschedulePings: true
2025
+ reschedulePings: true,
2026
+ // Root-cause fix for the Tizen 4.0 "Keepalive timeout" loop: MQTT.js's
2027
+ // default timerVariant "auto" runs the keepalive interval inside a
2028
+ // Blob-URL Web Worker (via worker-timers). On Samsung Tizen 4.0 (old
2029
+ // WebKit) served from a file:// origin that worker can't tick reliably,
2030
+ // so the keepalive counter trips onKeepaliveTimeout almost immediately
2031
+ // after connect. Force the native setInterval timer instead; the main
2032
+ // thread is free because video is decoded by the native AVPlay pipeline.
2033
+ timerVariant: "native"
2025
2034
  });
2026
2035
  } catch (err) {
2027
2036
  status = "error";
@@ -8816,12 +8825,10 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
8816
8825
  ];
8817
8826
  case 3:
8818
8827
  error = _state.sent();
8819
- this.adBreak.adPodQueue = [];
8820
- this.adBreak.inAdBreak = false;
8821
- this.adBreak.showAds = false;
8822
8828
  if (this.debug) {
8823
8829
  console.warn("[StormcloudVideoPlayer] VMAP ad request failed:", error);
8824
8830
  }
8831
+ this.adBreak.handleAdPodComplete();
8825
8832
  return [
8826
8833
  3,
8827
8834
  4