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.
@@ -1968,10 +1968,19 @@ function openConnection() {
1968
1968
  password: mqttConfig.password,
1969
1969
  keepalive: KEEPALIVE_SECONDS,
1970
1970
  clean: true,
1971
+ // Disable MQTT.js internal reconnect; we manage reconnection ourselves.
1971
1972
  reconnectPeriod: 0,
1972
1973
  connectTimeout: CONNECT_TIMEOUT_MS,
1973
1974
  queueQoSZero: false,
1974
- reschedulePings: true
1975
+ reschedulePings: true,
1976
+ // Root-cause fix for the Tizen 4.0 "Keepalive timeout" loop: MQTT.js's
1977
+ // default timerVariant "auto" runs the keepalive interval inside a
1978
+ // Blob-URL Web Worker (via worker-timers). On Samsung Tizen 4.0 (old
1979
+ // WebKit) served from a file:// origin that worker can't tick reliably,
1980
+ // so the keepalive counter trips onKeepaliveTimeout almost immediately
1981
+ // after connect. Force the native setInterval timer instead; the main
1982
+ // thread is free because video is decoded by the native AVPlay pipeline.
1983
+ timerVariant: "native"
1975
1984
  });
1976
1985
  } catch (err) {
1977
1986
  status = "error";