senza-sdk 4.2.64-2642526.0 → 4.2.64-70c0747.0

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.2.64-2642526.0",
3
+ "version": "4.2.64-70c0747.0",
4
4
  "main": "./src/api.js",
5
5
  "description": "API for Senza application",
6
6
  "license": "MIT",
@@ -45,9 +45,9 @@
45
45
  "coverageThreshold": {
46
46
  "global": {
47
47
  "branches": 88,
48
- "functions": 92.6,
49
- "lines": 93.88,
50
- "statements": 93.86
48
+ "functions": 92.73,
49
+ "lines": 93.99,
50
+ "statements": 93.97
51
51
  },
52
52
  "src/interface": {
53
53
  "branches": 69.38,
package/src/api.js CHANGED
@@ -22,27 +22,6 @@ export const auth = {
22
22
 
23
23
  };
24
24
 
25
- /**
26
- * @deprecated use lifecycle.ConnectReason instead.
27
- * @typedef {Object} ConnectReason - The reason the ui app has been loaded
28
- * @property {string} UNKNOWN
29
- * @property {string} INITIAL_CONNECTION - Indicates that ui app has been loaded for the first time
30
- * @property {string} APPLICATION_RELOAD - Indicates that ui app has been reloaded (e.g. after HOME keypress)
31
- * @property {string} UI_RELEASE - Indicates that ui app has been reloaded after ui release
32
- * @property {string} UI_TERMINATION - Indicates that ui app has been reloaded due to ui termination
33
- * @property {string} WEBRTC_ERROR - Indicates that ui app has been reloaded due to webrtc error
34
- * @property {string} UI_WATCHDOG - Indicates that ui app has been reloaded due to ui watchdog not receiving ui frames
35
- */
36
- export const ConnectReason = Object.freeze({
37
- UNKNOWN: "unknown",
38
- INITIAL_CONNECTION: "initial_connection",
39
- APPLICATION_RELOAD: "reload_app",
40
- UI_RELEASE: "ui_release",
41
- UI_TERMINATION: "ui_termination",
42
- WEBRTC_ERROR: "webrtc_error",
43
- UI_WATCHDOG: "ui_watchdog"
44
- });
45
-
46
25
  /**
47
26
  * Should be called once to init the library
48
27
  * @example
@@ -317,70 +296,6 @@ if (!isRunningE2E()) {
317
296
  shakaImplementation = window.senzaSDKImplementation.shaka;
318
297
  }
319
298
 
320
- /**
321
- * @deprecated use lifecycle.connectReason instead
322
- * Returns the reason the ui has been loaded
323
- **/
324
- export function getConnectReason() {
325
- return lifecycle.connectReason;
326
- }
327
-
328
- /**
329
- * @deprecated use lifecycle.triggerEvent instead
330
- * Returns the event that triggered the reloading of the ui after ui has been released
331
- **/
332
- export function getTriggerEvent() {
333
- return lifecycle.triggerEvent;
334
- }
335
-
336
- /**
337
- * @deprecated use platformManager.setTimezone instead.
338
- * @param {string} timezone the timezone to set to
339
- * the format of the timezone is according to the standard TZ identifier
340
- * (e.g. America/Los_Angeles, Asia/Tokyo, Europe/Brussels)
341
- * for a full list of TZ identifiers, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
342
- */
343
- export function setTimezone(timezone) {
344
- // STOP DO NOT CHANGE THIS FUNCTION AS IT IS DEPRECATED!!!!
345
- if (window.cefQuery) {
346
- const request = { message: JSON.stringify({ type: "setTimeZone", timezone }), waitForResponse: false, target: "UI-Streamer" };
347
- window.cefQuery({
348
- request: JSON.stringify(request),
349
- persistent: false,
350
- onSuccess: () => {
351
- sdkLogger.log("timezome is successfully set to", timezone);
352
- },
353
- onFailure: (code, msg) => {
354
- sdkLogger.error(`error occurred setting timezone to ${timezone}: ${code} ${msg}`);
355
- }
356
- });
357
- }
358
- }
359
-
360
- /**
361
- * @deprecated use deviceManager.deviceInfo instead.
362
- * Returns the device information, including device id, connection id, community, tenant and client ip
363
- * */
364
- export function getDeviceInfo() {
365
- // STOP DO NOT CHANGE THIS FUNCTION AS IT IS DEPRECATED!!!!
366
- if (isRunningE2E()) {
367
- return {
368
- deviceId: deviceManager.deviceInfo.deviceId,
369
- connectionId: deviceManager.deviceInfo.connectionId,
370
- community: deviceManager.deviceInfo.community,
371
- tenant: deviceManager.deviceInfo.tenant,
372
- clientIp: deviceManager.deviceInfo.clientIp
373
- };
374
- }
375
- sdkLogger.log("getDeviceInfo running locally, returning dummy info");
376
- return {
377
- deviceId: "123456789",
378
- connectionId: "dummy",
379
- community: "LocalDev",
380
- tenant: "XXXXXX",
381
- clientIp: "0.0.0.0"
382
- };
383
- }
384
299
 
385
300
  export { lifecycle, remotePlayer, alarmManager, deviceManager, platformManager, messageManager, ShakaPlayerImplementation as ShakaPlayer, shakaImplementation as shaka, showSequence, initSequence };
386
301