senza-sdk 4.3.2-a581729.0 → 4.3.2-ac89491.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.3.2-a581729.0",
3
+ "version": "4.3.2-ac89491.0",
4
4
  "main": "./src/api.js",
5
5
  "description": "API for Senza application",
6
6
  "license": "MIT",
@@ -1391,7 +1391,7 @@ class RemotePlayer extends RemotePlayerInterface {
1391
1391
  }
1392
1392
 
1393
1393
  if (this._remotePlayerApiVersion < 2) {
1394
- throw new RemotePlayerError(6504, `setScreenBlackout() is not supported in remotePlayerApiVersion=${this._remotePlayerApiVersion}`);
1394
+ throw new RemotePlayerError(6504, "setScreenBlackout(): internal error");
1395
1395
  }
1396
1396
 
1397
1397
  const blackoutTime = (date.getTime()/1000).toFixed(2);
@@ -1416,7 +1416,7 @@ class RemotePlayer extends RemotePlayerInterface {
1416
1416
  }
1417
1417
 
1418
1418
  if (this._remotePlayerApiVersion < 2) {
1419
- throw new RemotePlayerError(6504, `resetScreenBlackout() is not supported in remotePlayerApiVersion=${this._remotePlayerApiVersion}`);
1419
+ throw new RemotePlayerError(6504, "resetScreenBlackout(): internal error");
1420
1420
  }
1421
1421
  sdkLogger.info("remotePlayer.resetScreenBlackout(): resetting blackout time");
1422
1422
  return this._setScreenBlackout(0);
@@ -117,7 +117,7 @@ export class RemotePlayerError extends Error {
117
117
  * | 6501 | Player | load() was called while previous load/unload was still in progress |
118
118
  * | 6502 | Player | unload() was called while previous unload/load was still in progress |
119
119
  * | 6503 | Player | The remote player api call has invalid parameters |
120
- * | 6504 | Player | The remote player api call has invalid api version |
120
+ * | 6504 | Player | The remote player api internal error |
121
121
  * | 8001 | Player | Error pulling manifest. bad parameters |
122
122
  * | 8002 | Player | Error pulling manifest. filters returned no data |
123
123
  * | 8003 | Player | Error pulling manifest. fetch error |
@@ -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
- *
406
+ * @alpha API has not yet been released
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
- *
418
+ * @alpha API has not yet been released
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
  */