senza-sdk 4.2.65-90c49ac.0 → 4.2.65-d2761c0.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-90c49ac.0",
3
+ "version": "4.2.65-d2761c0.0",
4
4
  "main": "./src/api.js",
5
5
  "description": "API for Senza application",
6
6
  "license": "MIT",
@@ -720,7 +720,7 @@ class RemotePlayer extends EventTarget {
720
720
  };
721
721
  let waitForResponse = false;
722
722
  if (this._remotePlayerApiVersion >= 2) {
723
- message.switchMode = this._isAudioSyncEnabled() ? SwitchMode.SEAMLESS : SwitchMode.NON_SEAMLESS;
723
+ message.switchMode = this._isAudioSyncEnabled() && lifecycle.state !== lifecycle.UiState.BACKGROUND ? SwitchMode.SEAMLESS : SwitchMode.NON_SEAMLESS;
724
724
  message.streamType = streamType;
725
725
  waitForResponse = true;
726
726