senza-sdk 4.3.2-ac89491.0 → 4.3.2

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.
@@ -0,0 +1,57 @@
1
+ /*
2
+ @license
3
+ Copyright 2006 The Closure Library Authors
4
+ SPDX-License-Identifier: Apache-2.0
5
+ */
6
+
7
+ /*
8
+ @license
9
+ Copyright 2008 The Closure Library Authors
10
+ SPDX-License-Identifier: Apache-2.0
11
+ */
12
+
13
+ /*
14
+ @license
15
+ EME Encryption Scheme Polyfill
16
+ Copyright 2019 Google LLC
17
+ SPDX-License-Identifier: Apache-2.0
18
+ */
19
+
20
+ /*
21
+ @license
22
+ MSS Transmuxer
23
+ Copyright 2015 Dash Industry Forum
24
+ SPDX-License-Identifier: BSD-3-Clause
25
+ */
26
+
27
+ /*
28
+ @license
29
+ Shaka Player
30
+ Copyright 2016 Google LLC
31
+ SPDX-License-Identifier: Apache-2.0
32
+ */
33
+
34
+ /*
35
+ @license
36
+ Shaka Player
37
+ Copyright 2022 Google LLC
38
+ SPDX-License-Identifier: Apache-2.0
39
+ */
40
+
41
+ /*
42
+ @license
43
+ Shaka Player
44
+ Copyright 2023 Google LLC
45
+ SPDX-License-Identifier: Apache-2.0
46
+ */
47
+
48
+ /*
49
+ @license
50
+ tXml
51
+ Copyright 2015 Tobias Nickel
52
+ SPDX-License-Identifier: MIT
53
+ */
54
+
55
+ //! moment.js
56
+
57
+ //! moment.js locale configuration
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "senza-sdk",
3
- "version": "4.3.2-ac89491.0",
3
+ "version": "4.3.2",
4
4
  "main": "./src/api.js",
5
5
  "description": "API for Senza application",
6
6
  "license": "MIT",
@@ -647,6 +647,7 @@ class Lifecycle extends LifecycleInterface {
647
647
  fcid: FCID,
648
648
  session: btoa(JSON.stringify({
649
649
  tenantId,
650
+ tenantSwitchInfo: {startTime: new Date().toISOString(), tenantOrigin: getPlatformInfo().sessionInfo?.tenant},
650
651
  ...getPlatformInfo().sessionInfo?.tenantId === contentHubTenantId && tenantId !== homeTenantId && { returnToTenantId: contentHubTenantId }
651
652
  }))
652
653
  };
@@ -687,12 +688,14 @@ class Lifecycle extends LifecycleInterface {
687
688
  splashUrl: sessionInfoObj?.homeSessionInfo.tenantInfo.tenantSettings.applicationSwitchSplashUrl,
688
689
  fcid: FCID
689
690
  };
691
+ const session = {tenantSwitchInfo: {startTime: new Date().toISOString(), tenantOrigin: getPlatformInfo().sessionInfo?.tenant}};
690
692
  if (sessionInfoObj?.returnToTenantId) {
691
693
  if (sessionInfoObj?.returnToTenantId === sessionInfoObj?.homeSessionInfo.tenantInfo.contentHubTenantId) {
692
694
  message.splashUrl = sessionInfoObj?.homeSessionInfo.contentHubTenantInfo.tenantSettings.applicationSwitchSplashUrl;
693
695
  }
694
- message.session = btoa(JSON.stringify({ tenantId: sessionInfoObj?.returnToTenantId }));
696
+ session.tenantId = sessionInfoObj?.returnToTenantId;
695
697
  }
698
+ message.session = btoa(JSON.stringify(session));
696
699
  request = { target: "TC", waitForResponse: false, message: JSON.stringify(message) };
697
700
  } else {
698
701
  message = {
@@ -403,7 +403,7 @@ class RemotePlayer extends EventTarget {
403
403
  * The function sets a blackout time for the screen.
404
404
  * The blackout time is the time when the screen will be blacked out.
405
405
  * This is useful for parental controls where the screen should be blacked out during certain times
406
- * @alpha API has not yet been released
406
+ * @private
407
407
  * @param {Date} date
408
408
  * @returns {Promise<void>} A Promise that resolves once the blackout time is set.
409
409
  * @throws {RemotePlayerError} If the player is not initialized or not loaded. if date is not a Date object or if the remote player api version is not supported
@@ -415,7 +415,7 @@ class RemotePlayer extends EventTarget {
415
415
  /**
416
416
  * The function resets the currently set blackout time for the screen.
417
417
  * This is useful for parental controls to be reset the blackout time after it has been set.
418
- * @alpha API has not yet been released
418
+ * @private
419
419
  * @returns {Promise<void>} A Promise that resolves once the blackout time is reset.
420
420
  * @throws {RemotePlayerError} If the player is not initialized or not loaded. if the remote player api version is not supported
421
421
  */