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.
@@ -368,10 +368,19 @@ function openConnection() {
368
368
  password: mqttConfig.password,
369
369
  keepalive: KEEPALIVE_SECONDS,
370
370
  clean: true,
371
+ // Disable MQTT.js internal reconnect; we manage reconnection ourselves.
371
372
  reconnectPeriod: 0,
372
373
  connectTimeout: CONNECT_TIMEOUT_MS,
373
374
  queueQoSZero: false,
374
- reschedulePings: true
375
+ reschedulePings: true,
376
+ // Root-cause fix for the Tizen 4.0 "Keepalive timeout" loop: MQTT.js's
377
+ // default timerVariant "auto" runs the keepalive interval inside a
378
+ // Blob-URL Web Worker (via worker-timers). On Samsung Tizen 4.0 (old
379
+ // WebKit) served from a file:// origin that worker can't tick reliably,
380
+ // so the keepalive counter trips onKeepaliveTimeout almost immediately
381
+ // after connect. Force the native setInterval timer instead; the main
382
+ // thread is free because video is decoded by the native AVPlay pipeline.
383
+ timerVariant: "native"
375
384
  });
376
385
  } catch (err) {
377
386
  status = "error";