senza-sdk 4.2.46 → 4.2.47-a34cd6b.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.46",
3
+ "version": "4.2.47-a34cd6b.0",
4
4
  "main": "./src/api.js",
5
5
  "description": "API for Senza application",
6
6
  "license": "MIT",
@@ -199,8 +199,7 @@ class RemotePlayer extends EventTarget {
199
199
  sdkLogger.info("Got hs/playbackInfoEvent");
200
200
  // When attached, the sdk controls the synchronization between the local and remote player.
201
201
  if (this._videoElement) {
202
- // When audio sync is configured, the local player is already in sync with the remote player.
203
- if (!isAudioSyncConfigured() && (lifecycle.state === lifecycle.UiState.BACKGROUND || lifecycle.state === lifecycle.UiState.IN_TRANSITION_TO_BACKGROUND)) {
202
+ if ((lifecycle.state === lifecycle.UiState.BACKGROUND || lifecycle.state === lifecycle.UiState.IN_TRANSITION_TO_BACKGROUND)) {
204
203
  this._syncLocalPlayerWithRemotePlayer();
205
204
  }
206
205
  } else {
@@ -622,6 +621,7 @@ class RemotePlayer extends EventTarget {
622
621
 
623
622
  _syncLocalPlayerWithRemotePlayer() {
624
623
  if (this._videoElement) {
624
+ if (isAudioSyncConfigured()) this._isSeekingByPlatform = true;
625
625
  this._videoElement.currentTime = this.currentTime;
626
626
  }
627
627
  }