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.
@@ -1376,10 +1376,19 @@ function openConnection() {
1376
1376
  password: mqttConfig.password,
1377
1377
  keepalive: KEEPALIVE_SECONDS,
1378
1378
  clean: true,
1379
+ // Disable MQTT.js internal reconnect; we manage reconnection ourselves.
1379
1380
  reconnectPeriod: 0,
1380
1381
  connectTimeout: CONNECT_TIMEOUT_MS,
1381
1382
  queueQoSZero: false,
1382
- reschedulePings: true
1383
+ reschedulePings: true,
1384
+ // Root-cause fix for the Tizen 4.0 "Keepalive timeout" loop: MQTT.js's
1385
+ // default timerVariant "auto" runs the keepalive interval inside a
1386
+ // Blob-URL Web Worker (via worker-timers). On Samsung Tizen 4.0 (old
1387
+ // WebKit) served from a file:// origin that worker can't tick reliably,
1388
+ // so the keepalive counter trips onKeepaliveTimeout almost immediately
1389
+ // after connect. Force the native setInterval timer instead; the main
1390
+ // thread is free because video is decoded by the native AVPlay pipeline.
1391
+ timerVariant: "native"
1383
1392
  });
1384
1393
  } catch (err) {
1385
1394
  status = "error";