senza-sdk 4.2.65-4527e57.0 → 4.2.65-54828cd.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.65-4527e57.0",
3
+ "version": "4.2.65-54828cd.0",
4
4
  "main": "./src/api.js",
5
5
  "description": "API for Senza application",
6
6
  "license": "MIT",
@@ -330,7 +330,8 @@ class RemotePlayer extends EventTarget {
330
330
  * | 6002 | Player | load() was called while the application was in state 'background' or 'inTransitionToBackground' |
331
331
  * | 6500 | Player | remotePlayer api was called before initializing remotePlayer |
332
332
  * | 6501 | Player | load() was called while previous load/unload was still in progress |
333
- * | 6502 | Player | unload() was called while previous unload/load was still in progress |
333
+ * | 6502 | Player | unload() was called while previous unload/load was still in progress
334
+ * | 6503 | Player | The remote player api call has invalid parameters |
334
335
  * | 8001 | Player | Error pulling manifest. bad parameters |
335
336
  * | 8002 | Player | Error pulling manifest. filters returned no data |
336
337
  * | 8003 | Player | Error pulling manifest. fetch error |
@@ -1581,7 +1582,7 @@ class RemotePlayer extends EventTarget {
1581
1582
  }
1582
1583
 
1583
1584
  if (!(date instanceof Date)) {
1584
- throw new TypeError("blackoutTime must be a Date object"); // remotePlayer error
1585
+ throw new RemotePlayerError(6503, "date param must be a Date object");
1585
1586
  }
1586
1587
 
1587
1588
  const blackoutTime = (date.getTime()/1000).toFixed(2)