stormcloud-video-player 0.8.39 → 0.8.40

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
@@ -2183,10 +2183,19 @@ function openConnection() {
2183
2183
  password: mqttConfig.password,
2184
2184
  keepalive: KEEPALIVE_SECONDS,
2185
2185
  clean: true,
2186
+ // Disable MQTT.js internal reconnect; we manage reconnection ourselves.
2186
2187
  reconnectPeriod: 0,
2187
2188
  connectTimeout: CONNECT_TIMEOUT_MS,
2188
2189
  queueQoSZero: false,
2189
- reschedulePings: true
2190
+ reschedulePings: true,
2191
+ // Root-cause fix for the Tizen 4.0 "Keepalive timeout" loop: MQTT.js's
2192
+ // default timerVariant "auto" runs the keepalive interval inside a
2193
+ // Blob-URL Web Worker (via worker-timers). On Samsung Tizen 4.0 (old
2194
+ // WebKit) served from a file:// origin that worker can't tick reliably,
2195
+ // so the keepalive counter trips onKeepaliveTimeout almost immediately
2196
+ // after connect. Force the native setInterval timer instead; the main
2197
+ // thread is free because video is decoded by the native AVPlay pipeline.
2198
+ timerVariant: "native"
2190
2199
  });
2191
2200
  } catch (err) {
2192
2201
  status = "error";