senza-sdk 4.5.7 → 4.5.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "senza-sdk",
3
- "version": "4.5.7",
3
+ "version": "4.5.8",
4
4
  "main": "./src/api.js",
5
5
  "description": "API for Senza application",
6
6
  "license": "MIT",
@@ -228,6 +228,9 @@ class Lifecycle extends LifecycleInterface {
228
228
  } else if (triggerEvent.type === "hdmiStatusChanged") {
229
229
  sdkLogger.info("The hdmiStatusChanged data is sent in the callback after uiReady is called");
230
230
  }
231
+ } else if (this._connectReason === "tc_reconnect") {
232
+ this._triggerEvent.type = "restoreApplication";
233
+ this._connectReason = this.ConnectReason.APPLICATION_RECONNECT;
231
234
  }
232
235
  if (triggerEvent.fcid) {
233
236
  this._triggerEventFcid = triggerEvent.fcid;
@@ -83,6 +83,7 @@ class Lifecycle extends EventTarget {
83
83
  * @property {string} UI_TERMINATION - Indicates that ui app has been reloaded due to ui termination
84
84
  * @property {string} WEBRTC_ERROR - Indicates that ui app has been reloaded due to webrtc error
85
85
  * @property {string} UI_WATCHDOG - Indicates that ui app has been reloaded due to ui watchdog not receiving ui frames
86
+ * @property {string} APPLICATION_RECONNECT - Indicates that ui app has been reloaded due to connector reconnect (e.g. after connector reconnect) and should be restored
86
87
  */
87
88
  ConnectReason = Object.freeze({
88
89
  UNKNOWN: "unknown",
@@ -91,7 +92,8 @@ class Lifecycle extends EventTarget {
91
92
  UI_RELEASE: "ui_release",
92
93
  UI_TERMINATION: "ui_termination",
93
94
  WEBRTC_ERROR: "webrtc_error",
94
- UI_WATCHDOG: "ui_watchdog"
95
+ UI_WATCHDOG: "ui_watchdog",
96
+ APPLICATION_RECONNECT: "reconnect_app"
95
97
  });
96
98
 
97
99
  /**
@@ -1 +1 @@
1
- export const version = "4.5.7";
1
+ export const version = "4.5.8";